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

fl::Agglomerate Class Reference

#include <cluster.h>

Inheritance diagram for fl::Agglomerate:

fl::ClusterMethod List of all members.

Public Methods

 Agglomerate (Comparison *comparison, float distanceLimit, int minClusters=1)
 Agglomerate (std::istream &stream)
 ~Agglomerate ()
virtual void run (const std::vector< Vector< float > > &data)
 Peform clustering on collection of points.

virtual int classify (const Vector< float > &point)
 Determine the single best class of given point.

virtual Vector< float > distribution (const Vector< float > &point)
 Return a probability distribution over the classes. Row number in the returned Vector corresponds to class number.

virtual int classCount ()
 Returns the number of classes.

virtual Vector< float > representative (int group)
 Return a representative member of group. "group" has same semantics as return value of classify (); we just can't use the word "class" because it is a keyword in C++. :).

virtual void read (std::istream &stream)
virtual void write (std::ostream &stream, bool withName=false)

Public Attributes

Comparisoncomparison
float distanceLimit
 The largest distance permissible between two clusters.

int minClusters
 The target number of clusters at convergence. Result will be no smaller than this unless there are fewer input data.

std::vector< ClusterAgglomerative * > clusters

Constructor & Destructor Documentation

Agglomerate::Agglomerate Comparison   comparison,
float    distanceLimit,
int    minClusters = 1
 

Agglomerate::Agglomerate std::istream &    stream
 

Agglomerate::~Agglomerate  
 


Member Function Documentation

int Agglomerate::classCount   [virtual]
 

Returns the number of classes.

Implements fl::ClusterMethod.

int Agglomerate::classify const Vector< float > &    point [virtual]
 

Determine the single best class of given point.

Implements fl::ClusterMethod.

Vector< float > Agglomerate::distribution const Vector< float > &    point [virtual]
 

Return a probability distribution over the classes. Row number in the returned Vector corresponds to class number.

Implements fl::ClusterMethod.

void Agglomerate::read std::istream &    stream [virtual]
 

Reimplemented from fl::ClusterMethod.

Vector< float > Agglomerate::representative int    group [virtual]
 

Return a representative member of group. "group" has same semantics as return value of classify (); we just can't use the word "class" because it is a keyword in C++. :).

Implements fl::ClusterMethod.

void Agglomerate::run const std::vector< Vector< float > > &    data [virtual]
 

Peform clustering on collection of points.

Implements fl::ClusterMethod.

void Agglomerate::write std::ostream &    stream,
bool    withName = false
[virtual]
 

Reimplemented from fl::ClusterMethod.


Member Data Documentation

std::vector<ClusterAgglomerative *> fl::Agglomerate::clusters
 

Comparison* fl::Agglomerate::comparison
 

float fl::Agglomerate::distanceLimit
 

The largest distance permissible between two clusters.

int fl::Agglomerate::minClusters
 

The target number of clusters at convergence. Result will be no smaller than this unless there are fewer input data.


The documentation for this class was generated from the following files:
Generated on Thu Dec 9 17:13:26 2004 for fl by doxygen1.2.18