|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wiigee.logic.GestureModel
public class GestureModel
This Class units a Quantizer-Component and an Model-Component. In this implementation a k-mean-algorithm for quantization and a hidden markov model as instance for the model has been used.
| Constructor Summary | |
|---|---|
GestureModel()
Creates a Unit (Quantizer&Model). |
|
| Method Summary | |
|---|---|
double |
getDefaultProbability()
Returns the model probability for bayes. |
HMM |
getHMM()
|
int |
getNumObservations()
|
int |
getNumStates()
|
Quantizer |
getQuantizer()
|
double |
matches(Gesture gesture)
Returns the probability that a gesture matches to this gesture model. |
void |
print()
For debug purposes or very technical interested people. :) |
void |
printMap()
For debug purposes or very technical interested people. :) |
void |
setDefaultProbability(double prob)
|
void |
setHMM(HMM hmm)
|
void |
setQuantizer(Quantizer q)
|
void |
train(java.util.Vector<Gesture> trainsequence)
Trains the model to a set of motion-sequences, representing different evaluations of a gesture |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GestureModel()
id - int representation of a gesture "name"/class.| Method Detail |
|---|
public void train(java.util.Vector<Gesture> trainsequence)
trainsequence - a vector of gesturespublic double matches(Gesture gesture)
gesture - a gesture to test.
public void printMap()
public void print()
public int getNumStates()
public int getNumObservations()
public double getDefaultProbability()
public void setDefaultProbability(double prob)
public Quantizer getQuantizer()
public void setQuantizer(Quantizer q)
public HMM getHMM()
public void setHMM(HMM hmm)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||