#include <FloatFreqVector.hpp>
Inheritance diagram for FloatFreqVector:
Public Methods | |
FloatFreqVector () | |
FloatFreqVector (const Index &index, DOCID_T docID) | |
Construct a document frequency vector based on the counts stored in an index. | |
FloatFreqVector (const Index &index, TermInfoList *tList) | |
FloatFreqVector (const Index &index, vector< DOCID_T > &dids) | |
FloatFreqVector (FloatFreqVector *old) | |
virtual | ~FloatFreqVector () |
virtual bool | find (TERMID_T ind, double &freq) const |
virtual void | startIteration () const |
virtual bool | hasMore () const |
virtual void | nextFreq (TERMID_T &id, double &freq) const |
virtual int | size () const |
return the total number of non-zero elements in the vector | |
virtual void | nextFreq (TERMID_T &id, int &freq) const |
Fetch the next frequency entry. | |
virtual bool | find (TERMID_T ind, int &freq) const |
Find the frequency of a word identified by the index "ind". | |
void | addVal (TERMID_T id, int cnt) |
void | addVal (TERMID_T id, double val) |
double | sum () const |
double | sum2 () const |
void | weigh (const double *vals) |
void | weigh (double vals) |
void | addVec (const FloatFreqVector *v2) |
void | subtract (const FloatFreqVector *v2) |
double | dotProd (const FloatFreqVector *v2) |
Protected Attributes | |
int | i |
double | s2 |
|
|
|
Construct a document frequency vector based on the counts stored in an index.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Find the frequency of a word identified by the index "ind".
Implements FreqVector. |
|
|
|
Implements FreqVector. |
|
Fetch the next frequency entry.
Implements FreqVector. |
|
|
|
return the total number of non-zero elements in the vector
Implements FreqVector. |
|
Implements FreqVector. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|