#include <Classifier.h>
Inheritance diagram for ClassifierAlgorithm:
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 |
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.
|
Destructor |
|
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.
Implemented in Classifier, and GNG. |
|
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.
Implemented in Classifier, and GNG. |
|
Fetch next sample vector Gets the next sample vector passed as parameter.
Implemented in Classifier, and GNG. |
|
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.
Implemented in Classifier, and GNG. |
|
Serialize a samples data to a string
Implemented in Classifier, and GNG. |
|
This is only for testing. Implemented in Classifier, and GNG. |
|
Unserialize a samples data from a string
Implemented in Classifier, and GNG. |