Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::cluster::AgglomCluster Class Reference

K nearest neighbors clustering of documents. d_ave, d_min, d_max, d_mean scoring methods. More...

#include <AgglomCluster.hpp>

Inheritance diagram for lemur::cluster::AgglomCluster:

lemur::cluster::Cluster List of all members.

Public Member Functions

 AgglomCluster (int cid, const lemur::api::Index &ind, const SimilarityMethod &sim, enum ClusterParam::docModes mode)
 initialize

virtual ~AgglomCluster ()
 clean up

virtual double score (const ClusterRep *rep) const
 score a document against this cluster, given the rep.

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.


Private Member Functions

double score_min (const ClusterRep *rep) const
 Score the rep using min.

double score_max (const ClusterRep *rep) const
 Score the rep using max.

double score_mean (const ClusterRep *rep) const
 Score the rep using mean.

double score_ave (const ClusterRep *rep) const
 Score the rep using average.


Private Attributes

enum ClusterParam::docModes docmode
 Scoring mode to use.


Detailed Description

K nearest neighbors clustering of documents. d_ave, d_min, d_max, d_mean scoring methods.


Constructor & Destructor Documentation

lemur::cluster::AgglomCluster::AgglomCluster int  cid,
const lemur::api::Index ind,
const SimilarityMethod sim,
enum ClusterParam::docModes  mode
[inline]
 

initialize

virtual lemur::cluster::AgglomCluster::~AgglomCluster  )  [inline, virtual]
 

clean up


Member Function Documentation

lemur::cluster::ClusterRep * lemur::cluster::AgglomCluster::getClusterRep  )  const [virtual]
 

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.

double lemur::cluster::AgglomCluster::score const ClusterRep rep  )  const [virtual]
 

score a document against this cluster, given the rep.

Implements lemur::cluster::Cluster.

double lemur::cluster::AgglomCluster::score_ave const ClusterRep rep  )  const [private]
 

Score the rep using average.

double lemur::cluster::AgglomCluster::score_max const ClusterRep rep  )  const [private]
 

Score the rep using max.

double lemur::cluster::AgglomCluster::score_mean const ClusterRep rep  )  const [private]
 

Score the rep using mean.

double lemur::cluster::AgglomCluster::score_min const ClusterRep rep  )  const [private]
 

Score the rep using min.

double lemur::cluster::AgglomCluster::sum2  )  const [virtual]
 

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

Reimplemented from lemur::cluster::Cluster.


Member Data Documentation

enum ClusterParam::docModes lemur::cluster::AgglomCluster::docmode [private]
 

Scoring mode to use.


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:05 2010 for Lemur by doxygen 1.3.4