#include <ClusterRep.hpp>
Public Member Functions | |
| ClusterRep (const lemur::api::Index &ind) | |
| Empty rep. | |
| ClusterRep (lemur::api::DOCID_T did, const lemur::api::Index &ind) | |
| Rep for given document id. | |
| ClusterRep (lemur::api::TermInfoList *tList, const lemur::api::Index &ind) | |
| Rep for given TermInfoList. | |
| ClusterRep (vector< lemur::api::DOCID_T > &dids, const lemur::api::Index &ind) | |
| Rep for given vector of document ids. | |
| ClusterRep (lemur::utility::FloatFreqVector *v, const lemur::api::Index &ind) | |
| Rep for the given vector. | |
| ClusterRep (const ClusterRep *old) | |
| Copy constructor. | |
| virtual | ~ClusterRep () |
| clean up. | |
| virtual void | normalize () |
| divide each element by the square root of the sum of the squared elements in the vector. | |
| double | sum2 () const |
| sum of the squared elements in the vector. | |
| lemur::utility::FloatFreqVector * | getRep () const |
| get the underlying frequency vector. | |
| void | weigh (const double *vals) |
| multiply each element by the corresponding entry in vals. Destructively modifies the vector | |
| void | weigh (double val) |
| multiply each element by val. Destructively modifies the vector | |
| void | addVal (int id, double val) |
| add val to each element in the vector. Destructively modifies the vector | |
| void | addTerms (const vector< lemur::api::TERMID_T > &tids) |
| add 1 to each element in the vector specified in tids. Destructively modifies the vector | |
| void | addVec (const ClusterRep *v2) |
| adds vector to rep. Destructively modifies the vector | |
| void | subtract (const ClusterRep *v2) |
| subtracts vector from rep. Destructively modifies the vector | |
| double | dotProd (const ClusterRep *v2) const |
| computes dot product between two reps. | |
Private Attributes | |
| lemur::utility::FloatFreqVector * | rep |
| const lemur::api::Index & | index |
|
|
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.
|
|
|
get the underlying frequency vector.
|
|
|
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.3.4