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

fl::Kohonen Class Reference

#include <cluster.h>

Inheritance diagram for fl::Kohonen:

fl::ClusterMethod List of all members.

Public Methods

 Kohonen (int width, float sigma=1.0, float learningRate=0.1, float decayRate=0.5)
 Kohonen (std::istream &stream)
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

std::vector< ClusterCosinemap
int width
 Number of discrete positions in one dimension.

float sigma
 Of Gaussian that determines neighborhood to be updated.

float learningRate
 How much to scale feature vector during update.

float decayRate
 How much to scale learningRate after each iteration.


Constructor & Destructor Documentation

Kohonen::Kohonen int    width,
float    sigma = 1.0,
float    learningRate = 0.1,
float    decayRate = 0.5
 

Kohonen::Kohonen std::istream &    stream
 


Member Function Documentation

int Kohonen::classCount   [virtual]
 

Returns the number of classes.

Implements fl::ClusterMethod.

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

Determine the single best class of given point.

Implements fl::ClusterMethod.

Vector< float > Kohonen::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 Kohonen::read std::istream &    stream [virtual]
 

Reimplemented from fl::ClusterMethod.

Vector< float > Kohonen::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 Kohonen::run const std::vector< Vector< float > > &    data [virtual]
 

Peform clustering on collection of points.

Implements fl::ClusterMethod.

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

Reimplemented from fl::ClusterMethod.


Member Data Documentation

float fl::Kohonen::decayRate
 

How much to scale learningRate after each iteration.

float fl::Kohonen::learningRate
 

How much to scale feature vector during update.

std::vector<ClusterCosine> fl::Kohonen::map
 

float fl::Kohonen::sigma
 

Of Gaussian that determines neighborhood to be updated.

int fl::Kohonen::width
 

Number of discrete positions in one dimension.


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