Description Set. More...
#include <gdescriptionset.h>
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.
Constructor & Destructor Documentation
| GDescriptionSet | ( | GSession * | session | ) |
Constructor of the description set.
- Parameters:
-
session Session.
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:
-
desc Description 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:
-
conceptid Identifier of the concept.
- Returns:
- the inverse frequency factor for a given concept.