#include <FreqVector.hpp>
Inheritance diagram for HashFreqVector:
Public Methods | |
HashFreqVector () | |
HashFreqVector (Index &index,int docID) | |
Construct a document frequency vector based on the counts stored in an index. | |
virtual | ~HashFreqVector () |
virtual bool | find (int ind,int &freq) |
Find the frequency of a word identified by the index "ind". | |
virtual void | startIteration () |
virtual bool | hasMore () |
virtual void | nextFreq (int &id,int &freq) |
Fetch the next frequency entry. | |
virtual int | size () |
return the total number of non-zero elements in the vector. | |
Protected Attributes | |
int | i |
|
|
|
Construct a document frequency vector based on the counts stored in an index.
|
|
|
|
Find the frequency of a word identified by the index "ind".
Reimplemented from FreqVector. |
|
Reimplemented from FreqVector. |
|
Fetch the next frequency entry.
Reimplemented from FreqVector. |
|
return the total number of non-zero elements in the vector.
Reimplemented from FreqVector. |
|
Reimplemented from FreqVector. |
|
|