41 #ifndef _CDOCUMENTFREQUENCYELEMENT
42 #define _CDOCUMENTFREQUENCYELEMENT
43 #include "libGIFTAcInvertedFile/include/uses-declarations.h"
46 #include "libMRML/include/TID.h"
74 float inDocumentFrequency);
101 bool input(istream& inStream);
108 bool output(ostream& outStream)
const;
115 bool writeBinary(ostream& outStream)
const;
133 unsigned int getIntegerDocumentFrequency()
const;
140 float getDocumentFrequency()
const;
147 void setDocumentFrequency(
float);
154 void divideDocumentFrequency(
float);
170 public binary_function
171 <CDocumentFrequencyElement,CDocumentFrequencyElement,bool>{
176 return l.getID()<t.getID();
190 public binary_function
191 <CDocumentFrequencyElement,CDocumentFrequencyElement,bool>{
196 return t.getDocumentFrequency()<l.getDocumentFrequency();
CDocumentFrequencyElement:Sorting function class for sorting by ID.
Definition: CDocumentFrequencyElement.h:169
CDocumentFrequencyElement:ASCENDING Sort for the document frequency.
Definition: CDocumentFrequencyElement.h:189
TID mID
The ID of the document or featue.
Definition: CDocumentFrequencyElement.h:52
bool operator()(const CDocumentFrequencyElement &l, const CDocumentFrequencyElement &t)
Inlined for speed.
Definition: CDocumentFrequencyElement.h:174
float mDocumentFrequency
The document frequency of the feature.
Definition: CDocumentFrequencyElement.h:54
CDOCUMENTFREQUENCYELEMENT.
Definition: CDocumentFrequencyElement.h:49