#include <FloatFreqVector.hpp>
Inheritance diagram for FloatFreqVector:

Public Methods | |
| FloatFreqVector () | |
| FloatFreqVector (const Index &index, int 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< int > &dids) | |
| FloatFreqVector (FloatFreqVector *old) | |
| virtual | ~FloatFreqVector () |
| virtual bool | find (int ind, double &freq) const |
| virtual void | startIteration () const |
| virtual bool | hasMore () const |
| virtual void | nextFreq (int &id, double &freq) const |
| virtual int | size () const |
| return the total number of non-zero elements in the vector | |
| virtual void | nextFreq (int &id, int &freq) const |
| Fetch the next frequency entry. | |
| virtual bool | find (int ind, int &freq) const |
| Find the frequency of a word identified by the index "ind". | |
| void | addVal (int id, int cnt) |
| void | addVal (int 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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.18