A class which does all the necessary administrative work for generating inverted files. More...
#include <CInvertedFileChunk.h>
Public Member Functions | |
double | getCollectionFrequency (size_t inSize) const |
returns the percentage of documents which contain this one feature | |
void | addElement (TID inDocumentID, double inDocumentFrequency) |
add one document of to the list for one feature | |
bool | writeBinary (ostream &, TID inFeatureID, size_t inSize) const |
writes the binary part of the list for one feature |
A class which does all the necessary administrative work for generating inverted files.
It contains the list of documents which contain a given feature
void CInvertedFileChunk::addElement | ( | TID | inDocumentID, |
double | inDocumentFrequency | ||
) |
add one document of to the list for one feature
double CInvertedFileChunk::getCollectionFrequency | ( | size_t | inSize | ) | const |
returns the percentage of documents which contain this one feature
bool CInvertedFileChunk::writeBinary | ( | ostream & | , |
TID | inFeatureID, | ||
size_t | inSize | ||
) | const |
writes the binary part of the list for one feature