#include <Classifier.h>
Inheritance diagram for Classifier:
Public Member Functions | |
Classifier (const string &name, const classifierparams ¶ms) | |
virtual | ~Classifier () |
virtual void | init (FeatureContainer *fc) |
virtual membershiplist | getClusterMembership (const featurevector *sample) |
virtual unsigned long | nextSample () |
virtual unsigned long | nextSample (const featurevector *sample) |
virtual string | serialize () const |
virtual void | unserialize (string data) |
ClassifierAlgorithm * | getCa () const |
virtual string | toString () const |
The Classifier Class is a wrapper class that loads a dll containing the actual implementation during runtime.
|
Creates the classifier
|
|
Destructor |
|
Return actual ClassifierAlgorithm instance |
|
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.
Implements ClassifierAlgorithm. |
|
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.
Implements ClassifierAlgorithm. |
|
Fetch next sample vector Gets the next sample vector passed as parameter.
Implements ClassifierAlgorithm. |
|
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.
Implements ClassifierAlgorithm. |
|
Serialize a samples data to a string
Implements ClassifierAlgorithm. |
|
This is only for testing. Implements ClassifierAlgorithm. |
|
Unserialize a samples data from a string
Implements ClassifierAlgorithm. |