CIFBuilderTriplet Class

# CIFBuilderTriplet Class Reference

[CADIHash.h Index] [CADIHash.h Hierarchy]

When building an inverted file by successive mergingwe need first to create a file containing triplets of FeatureID, DocumentID and DocumentFrequency These elements need to be sorted by FeatureID and inverse Document Frequency More...

`#include <../libInvertedFile/include/CIFBuilderTriplet.h>`

## Public Members

- CIFBuilderTriplet ()
- CIFBuilderTriplet (TID inFeatureID, TID inDocumentID, float inDocumentFrequency)
- bool isIdentical (const CIFBuilderTriplet& inTriplet)
- int mFeatureID
- int mDocumentID
- float mDocumentFrequency

## Detailed Description

When building an inverted file by successive mergingwe need first to create a file containing triplets of FeatureID, DocumentID and DocumentFrequency

These elements need to be sorted by FeatureID and inverse Document Frequency.

## CIFBuilderTriplet()

the default constructor

## CIFBuilderTriplet(TID inFeatureID, TID inDocumentID, float inDocumentFrequency)

convenience constructor

## bool isIdentical(const CIFBuilderTriplet& inTriplet)

testing if all fields are equal

## int mFeatureID

the feature id of this feature

## int mDocumentID

the document id of the document containing

## float mDocumentFrequency

the frequency of the feature within the document

| Kdoc