Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CentroidCluster Class Reference

Centroid clustering of documents (agglomerative mean). Trades space for speed. More...

#include <CentroidCluster.hpp>

Inheritance diagram for CentroidCluster:

Cluster List of all members.

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 ClusterRepgetClusterRep () 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.


Detailed Description

Centroid clustering of documents (agglomerative mean). Trades space for speed.


Constructor & Destructor Documentation

CentroidCluster::CentroidCluster int    cid,
const Index   ind,
const SimilarityMethod   sim
 

initialize

virtual CentroidCluster::~CentroidCluster   [inline, virtual]
 

clean up


Member Function Documentation

void CentroidCluster::add const vector< DOCID_T   docids [virtual]
 

add a list of document ids

Reimplemented from Cluster.

void CentroidCluster::add const ClusterElt   elt [virtual]
 

add an element

Reimplemented from Cluster.

ClusterRep * CentroidCluster::getClusterRep   [virtual]
 

Get the ClusterRep for this Cluster for scoring. The Rep will have been weighted by the SimilarityMethod. Caller responsible for deleting.

Implements Cluster.

bool CentroidCluster::read ifstream &    in [virtual]
 

read a cluster in from the cluster db file.

Reimplemented from Cluster.

void CentroidCluster::remove const ClusterElt   elt [virtual]
 

remove the element from this cluster

Reimplemented from Cluster.

double CentroidCluster::score const ClusterRep   rep const [virtual]
 

score a document against this cluster, given the rep.

Implements Cluster.

virtual double CentroidCluster::sum2   const [inline, virtual]
 

Sum of squared values in the cluster's term vector.

Reimplemented from Cluster.


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:25 2004 for Lemur Toolkit by doxygen1.2.18