CInvertedFileChunk Class

# CInvertedFileChunk Class Reference

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

A class which does all the necessary administrativework for generating inverted files More...

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

Inherits: CMapInvertedFileChunk

## Public Members

- double getCollectionFrequency (size_t inSize)
- void CInvertedFileChunk::addElement (TID inDocumentID, double inDocumentFrequency)
- bool writeBinary (ostream&, TID inFeatureID, size_t inSize)

## Detailed Description

A class which does all the necessary administrativework for generating inverted files. It contains the list of

## double getCollectionFrequency(size_t inSize)

returns the percentage of documents which contain this one feature

## void CInvertedFileChunk::addElement(TID inDocumentID, double inDocumentFrequency)

add one document of to the list for one feature

## bool writeBinary(ostream&, TID inFeatureID, size_t inSize)

writes the binary part of the list for one feature

| Kdoc