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

fl::ClusterMethod Class Reference

#include <cluster.h>

Inheritance diagram for fl::ClusterMethod:

fl::Agglomerate fl::KMeans fl::Kohonen fl::KMeansParallel List of all members.

Public Methods

virtual void run (const std::vector< Vector< float > > &data)=0
 Peform clustering on collection of points.

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

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

virtual int classCount ()=0
 Returns the number of classes.

virtual Vector< float > representative (int group)=0
 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

bool stop
 If set true, signals run () to terminate at the next reasonable spot. run () should clear this flag when it first starts, but only monitor it after that.


Member Function Documentation

virtual int fl::ClusterMethod::classCount   [pure virtual]
 

Returns the number of classes.

Implemented in fl::KMeans, fl::Kohonen, and fl::Agglomerate.

virtual int fl::ClusterMethod::classify const Vector< float > &    point [pure virtual]
 

Determine the single best class of given point.

Implemented in fl::KMeans, fl::Kohonen, and fl::Agglomerate.

virtual Vector<float> fl::ClusterMethod::distribution const Vector< float > &    point [pure virtual]
 

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

Implemented in fl::KMeans, fl::Kohonen, and fl::Agglomerate.

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

Reimplemented in fl::KMeans, fl::Kohonen, and fl::Agglomerate.

virtual Vector<float> fl::ClusterMethod::representative int    group [pure 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++. :).

Implemented in fl::KMeans, fl::Kohonen, and fl::Agglomerate.

virtual void fl::ClusterMethod::run const std::vector< Vector< float > > &    data [pure virtual]
 

Peform clustering on collection of points.

Implemented in fl::KMeans, fl::KMeansParallel, fl::Kohonen, and fl::Agglomerate.

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

Reimplemented in fl::KMeans, fl::Kohonen, and fl::Agglomerate.


Member Data Documentation

bool fl::ClusterMethod::stop
 

If set true, signals run () to terminate at the next reasonable spot. run () should clear this flag when it first starts, but only monitor it after that.


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