#include <KeyfileClusterDB.hpp>
Inheritance diagram for KeyfileClusterDB:
Public Methods | |
KeyfileClusterDB (const Index *ind, const string &name, double threshold=0.25, enum ClusterParam::simTypes simType=ClusterParam::COS, enum ClusterParam::clusterTypes clusterType=ClusterParam::CENTROID, enum ClusterParam::docModes docMode=ClusterParam::DMAX) | |
initialize | |
virtual | ~KeyfileClusterDB () |
clean up | |
virtual vector< Cluster * > | getDocCluster (DOCID_T docId) const |
Get the Cluster for the given docId. | |
virtual int | countClusters () const |
Count number of clusters. | |
virtual int | maxID () const |
Return highest cluster ID. | |
virtual Cluster * | getCluster (int clusterId) const |
Get the Cluster for the given clusterId. | |
virtual vector< int > | getDocClusterId (DOCID_T docId) const |
Get the Cluster id for the given docId. | |
virtual int | addToCluster (DOCID_T docId, int clusterId, double score) |
Add a document id to a cluster, given the cluster id. | |
virtual int | addToCluster (DOCID_T docId, Cluster *cluster, double score) |
Add a document id to a cluster, given the cluster. | |
virtual int | removeFromCluster (DOCID_T docId, int clusterID) |
Remove a document id from a cluster, given the cluster id. | |
virtual int | deleteCluster (int clusterID) |
Delete a cluster entirely. | |
virtual int | deleteCluster (Cluster *cluster) |
Delete a cluster entirely. | |
virtual vector< int > | splitCluster (int cid, int num=2) |
split cluster -- using Cluster::split. | |
virtual int | mergeClusters (int cid1, int cid2) |
merge two clusters. | |
Protected Methods | |
virtual Cluster * | newCluster () |
Factory method for creating Cluster objects. |
|
initialize
|
|
clean up
|
|
Add a document id to a cluster, given the cluster.
Implements ClusterDB. |
|
Add a document id to a cluster, given the cluster id.
Implements ClusterDB. |
|
Count number of clusters.
Implements ClusterDB. |
|
Delete a cluster entirely.
Implements ClusterDB. |
|
Delete a cluster entirely.
Implements ClusterDB. |
|
Get the Cluster for the given clusterId.
Implements ClusterDB. |
|
Get the Cluster for the given docId.
Implements ClusterDB. |
|
Get the Cluster id for the given docId.
Implements ClusterDB. |
|
Return highest cluster ID.
Implements ClusterDB. |
|
merge two clusters.
Implements ClusterDB. |
|
Factory method for creating Cluster objects.
Implements ClusterDB. |
|
Remove a document id from a cluster, given the cluster id.
Implements ClusterDB. |
|
split cluster -- using Cluster::split.
Implements ClusterDB. |