#include <CentroidCluster.hpp>
Inheritance diagram for CentroidCluster:
Public Methods | |
CentroidCluster (int cid, const 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< 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. |
|
initialize
|
|
clean up
|
|
add a list of document ids
Reimplemented from Cluster. |
|
add an element
Reimplemented from Cluster. |
|
Get the ClusterRep for this Cluster for scoring. The Rep will have been weighted by the SimilarityMethod. Caller responsible for deleting.
Implements Cluster. |
|
read a cluster in from the cluster db file.
Reimplemented from Cluster. |
|
remove the element from this cluster
Reimplemented from Cluster. |
|
score a document against this cluster, given the rep.
Implements Cluster. |
|
Sum of squared values in the cluster's term vector.
Reimplemented from Cluster. |