#include <ClusterRep.hpp>
Public Methods | |
| ClusterRep (const Index &ind) | |
| Empty rep. | |
| ClusterRep (int did, const Index &ind) | |
| Rep for given document id. | |
| ClusterRep (TermInfoList *tList, const Index &ind) | |
| Rep for given TermInfoList. | |
| ClusterRep (vector< int > &dids, const Index &ind) | |
| Rep for given vector of document ids. | |
| ClusterRep (FloatFreqVector *v, const Index &ind) | |
| Rep for the given vector. | |
| ClusterRep (const ClusterRep *old) | |
| Copy constructor. | |
| virtual | ~ClusterRep () |
| clean up. | |
| virtual void | normalize () |
| double | sum2 () const |
| sum of the squared elements in the vector. | |
| FloatFreqVector * | getRep () const |
| This should not be exposed... | |
| void | weigh (const double *vals) |
| void | weigh (double val) |
| void | addVal (int id, double val) |
| void | addTerms (const vector< int > &tids) |
| void | addVec (const ClusterRep *v2) |
| void | subtract (const ClusterRep *v2) |
| double | dotProd (const ClusterRep *v2) const |
| computes dot product between two reps. | |
|
|
Empty rep.
|
|
||||||||||||
|
Rep for given document id.
|
|
||||||||||||
|
Rep for given TermInfoList.
|
|
||||||||||||
|
Rep for given vector of document ids.
|
|
||||||||||||
|
Rep for the given vector.
|
|
|
Copy constructor.
|
|
|
clean up.
|
|
|
add 1 to each element in the vector specified in tids. Destructively modifies the vector |
|
||||||||||||
|
add val to each element in the vector. Destructively modifies the vector |
|
|
adds vector to rep. Destructively modifies the vector |
|
|
computes dot product between two reps.
|
|
|
This should not be exposed...
|
|
|
divide each element by the square root of the sum of the squared elements in the vector. |
|
|
subtracts vector from rep. Destructively modifies the vector |
|
|
sum of the squared elements in the vector.
|
|
|
multiply each element by val. Destructively modifies the vector |
|
|
multiply each element by the corresponding entry in vals. Destructively modifies the vector |
1.2.18