#include <CentroidCluster.hpp>
Inheritance diagram for lemur::cluster::CentroidCluster:

Public Member Functions | |
| CentroidCluster (int cid, const lemur::api::Index &ind, const SimilarityMethod &sim) | |
| initialize | |
| virtual | ~CentroidCluster () |
| clean up | |
| virtual double | score (const ClusterRep *rep) const |
| score a document against this cluster, given the rep. | |
| virtual void | add (const ClusterElt &elt) |
| add an element | |
| virtual void | add (const vector< lemur::api::DOCID_T > docids) |
| add a list of document ids | |
| virtual void | remove (const ClusterElt &elt) |
| remove the element from this cluster | |
| virtual bool | read (ifstream &in) |
| read a cluster in from the cluster db file. | |
| virtual ClusterRep * | getClusterRep () const |
| Get the ClusterRep for this Cluster for scoring. The Rep will have been weighted by the SimilarityMethod. Caller responsible for deleting. | |
| virtual double | sum2 () const |
| Sum of squared values in the cluster's term vector. | |
Private Member Functions | |
| lemur::utility::FloatFreqVector * | readCentroid () |
| Read the centroid vector of the cluster in from disk. | |
| void | updateCentroid (lemur::utility::FloatFreqVector *v, bool first) |
| Add a vector to the centroid. | |
Private Attributes | |
| lemur::utility::FloatFreqVector * | centroid |
| The centroid vector of the cluster. | |
| ClusterRep * | weightedCentroid |
| The weighted centroid vector of the cluster as a ClusterRep. | |
|
||||||||||||||||
|
initialize
|
|
|
clean up
|
|
|
add a list of document ids
Reimplemented from lemur::cluster::Cluster. |
|
|
add an element
Reimplemented from lemur::cluster::Cluster. |
|
|
Get the ClusterRep for this Cluster for scoring. The Rep will have been weighted by the SimilarityMethod. Caller responsible for deleting.
Implements lemur::cluster::Cluster. |
|
|
read a cluster in from the cluster db file.
Reimplemented from lemur::cluster::Cluster. |
|
|
Read the centroid vector of the cluster in from disk.
|
|
|
remove the element from this cluster
Reimplemented from lemur::cluster::Cluster. |
|
|
score a document against this cluster, given the rep.
Implements lemur::cluster::Cluster. |
|
|
Sum of squared values in the cluster's term vector.
Reimplemented from lemur::cluster::Cluster. |
|
||||||||||||
|
Add a vector to the centroid.
|
|
|
The centroid vector of the cluster.
|
|
|
The weighted centroid vector of the cluster as a ClusterRep.
|
1.3.4