#include <FloatFreqVector.hpp>
Inheritance diagram for lemur::utility::FloatFreqVector:
Public Member Functions | |
FloatFreqVector () | |
FloatFreqVector (const lemur::api::Index &index, lemur::api::DOCID_T docID) | |
Construct a document frequency vector based on the counts stored in an index. | |
FloatFreqVector (const lemur::api::Index &index, lemur::api::TermInfoList *tList) | |
FloatFreqVector (const lemur::api::Index &index, vector< lemur::api::DOCID_T > &dids) | |
FloatFreqVector (FloatFreqVector *old) | |
virtual | ~FloatFreqVector () |
virtual bool | find (lemur::api::TERMID_T ind, double &freq) const |
virtual void | startIteration () const |
virtual bool | hasMore () const |
virtual void | nextFreq (lemur::api::TERMID_T &id, double &freq) const |
virtual int | size () const |
return the total number of non-zero elements in the vector | |
virtual void | nextFreq (lemur::api::TERMID_T &id, int &freq) const |
Fetch the next frequency entry. | |
virtual bool | find (lemur::api::TERMID_T ind, int &freq) const |
Find the frequency of a word identified by the index "ind". | |
void | addVal (lemur::api::TERMID_T id, int cnt) |
void | addVal (lemur::api::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 lemur::utility::FreqVector. |
|
|
|
Implements lemur::utility::FreqVector. |
|
Fetch the next frequency entry.
Implements lemur::utility::FreqVector. |
|
|
|
return the total number of non-zero elements in the vector
Implements lemur::utility::FreqVector. |
|
Implements lemur::utility::FreqVector. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|