frog
Interface Classifier

All Known Implementing Classes:
Bayesian

public interface Classifier

A classifier object contains a set of GestureModel's with which to classify gesture instances against.

Author:
Team Better Recognize

Field Summary
static int BAYESIAN
          This is the Classifier type index for Bayesian classifiers
static int NUM_TYPES_SUPPORTED
          Number of classifier types implemented (to be changed if extended)
 
Method Summary
 GestureModel classify(Vector<Accel3D> g)
          Classifies a given gesture against the Classifier's set of GestureModels.
 double getLastProbability()
          Returns the probability of the last classification.
 Vector<GestureModel> getModels()
          Returns the set of GestureModels that form this Classifier.
 

Field Detail

BAYESIAN

static final int BAYESIAN
This is the Classifier type index for Bayesian classifiers

See Also:
Constant Field Values

NUM_TYPES_SUPPORTED

static final int NUM_TYPES_SUPPORTED
Number of classifier types implemented (to be changed if extended)

See Also:
Constant Field Values
Method Detail

getModels

Vector<GestureModel> getModels()
Returns the set of GestureModels that form this Classifier.

Returns:
a Vector of GestureModels that form the Classifier

classify

GestureModel classify(Vector<Accel3D> g)
Classifies a given gesture against the Classifier's set of GestureModels.

Returns:
the GestureModel matched with maximum probability (or null if a match failed)

getLastProbability

double getLastProbability()
Returns the probability of the last classification.

Returns:
the double representing the probability of the last classification