Description Set. More...

#include <gdescriptionset.h>

List of all members.

Public Member Functions

 GDescriptionSet (GSession *session)
size_t GetNb (void) const
void Clear (void)
void InsertDescription (const GDescription *desc)
double GetIF (size_t conceptid)

Detailed Description

Description Set.

The GDescriptionSet provides a representation for a set of descriptions. It is useful to compute the inverse object for a given subset.

Author:
Pascal Francq

Constructor & Destructor Documentation

GDescriptionSet ( GSession session)

Constructor of the description set.

Parameters:
sessionSession.

Member Function Documentation

size_t GetNb ( void  ) const
Returns:
the number of descriptions.
void Clear ( void  )

Clear the description set.

void InsertDescription ( const GDescription desc)

Add a description to the set.

Parameters:
descDescription to add.
double GetIF ( size_t  conceptid)

Compute the inverse frequency factors for the set of description. In practice, it is only recomputed when the set changed.

Parameters:
conceptidIdentifier of the concept.
Returns:
the inverse frequency factor for a given concept.