ClassifierAlgorithm Class Reference

#include <Classifier.h>

Inheritance diagram for ClassifierAlgorithm:

Classifier GNG List of all members.

Public Member Functions

virtual ~ClassifierAlgorithm ()
virtual void init (FeatureContainer *fc)=0
virtual membershiplist getClusterMembership (const featurevector *sample)=0
virtual unsigned long nextSample ()=0
virtual unsigned long nextSample (const featurevector *sample)=0
virtual string serialize () const =0
virtual void unserialize (string data)=0
virtual string toString () const =0

Detailed Description

ClassifierAlgorithm Interface

This class defines the abstract interface to classification/clustering algorithms. Any algorithm which is to be used for the classification step in this framework has to implement these methods and be derived from this class.


Constructor & Destructor Documentation

virtual ClassifierAlgorithm::~ClassifierAlgorithm  )  [inline, virtual]
 

Destructor


Member Function Documentation

virtual membershiplist ClassifierAlgorithm::getClusterMembership const featurevector sample  )  [pure virtual]
 

Get membership vector

This method returns the data for the next steps, which is a list of context classes found by the algorithm with associated membership values. These values specify the membership of the current feature values to each of the context classes in the interval [0; 1]. They can thus by seen as the probabilities that the context classes are currently active.

Parameters:
sample The sample vector for which the membershiplist should be calculated

Implemented in Classifier, and GNG.

virtual void ClassifierAlgorithm::init FeatureContainer fc  )  [pure virtual]
 

Initializer

Initializes internal data structures of the classification/clustering algorithm. This usually involves constructing initial prototypes for cluster centers; thus, randomized feature vectors are necessary for the initialization. The getFeatureVector method of the passed FeatureContainer object may be called multiple times by the initialization. The given FeatureContainer is also used when nextSample() is called.

Parameters:
fc The FeatureContainer from which the randomized feature vectors should be retrieved.
See also:
FeatureContainer::getFeatureVector

nextSample()

Implemented in Classifier, and GNG.

virtual unsigned long ClassifierAlgorithm::nextSample const featurevector sample  )  [pure virtual]
 

Fetch next sample vector Gets the next sample vector passed as parameter.

Parameters:
sample samplevector

Implemented in Classifier, and GNG.

virtual unsigned long ClassifierAlgorithm::nextSample  )  [pure virtual]
 

Fetch next sample vector

Gets the next sample vector from the configured feature source. This method calls nextSample and getSampleVector on the FeatureContainer given to the init method.

See also:
FeatureConteiner::nextSample

FeatureContainer::getSampleVector

Implemented in Classifier, and GNG.

virtual string ClassifierAlgorithm::serialize  )  const [pure virtual]
 

Serialize a samples data to a string

Returns:
String representation of the samples data.

Implemented in Classifier, and GNG.

virtual string ClassifierAlgorithm::toString  )  const [pure virtual]
 

This is only for testing.

Implemented in Classifier, and GNG.

virtual void ClassifierAlgorithm::unserialize string  data  )  [pure virtual]
 

Unserialize a samples data from a string

Parameters:
data String representation of the samples data.

Implemented in Classifier, and GNG.


The documentation for this class was generated from the following file:
Generated on Mon Jun 5 10:20:49 2006 for Intelligence.kdevelop by  doxygen 1.4.6