|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfrog.Bayesian
public class Bayesian
Bayesian is a classifier that uses Bayesian conditional probability to classify gestures.
| Field Summary |
|---|
| Fields inherited from interface frog.Classifier |
|---|
BAYESIAN, NUM_TYPES_SUPPORTED |
| Constructor Summary | |
|---|---|
Bayesian(Vector<GestureModel> m)
Creates a Bayesian Classifier with the given set of GestureModels. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bayesian(Vector<GestureModel> m)
m - the set of GestureModels used in construction| Method Detail |
|---|
public GestureModel classify(Vector<Accel3D> g)
Classifier
classify in interface Classifierpublic double getLastProbability()
Classifier
getLastProbability in interface Classifierpublic Vector<GestureModel> getModels()
Classifier
getModels in interface Classifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||