|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wiigee.logic.Quantizer
public class Quantizer
This class implements a quantization component. In this case a k-mean-algorithm is used. In this case the initial values of the algorithm are ordered as two intersected circles, representing an abstract globe with k=14 elements. As a special feature the radius of this globe would be calculated dynamically before the training of this component.
| Constructor Summary | |
|---|---|
Quantizer(int numStates)
Initialize a empty quantizer. |
|
| Method Summary | |
|---|---|
int[][] |
deriveGroups(Gesture gesture)
This methods looks up a Gesture to a group matrix, used by the k-mean-algorithm (traincenteroid method) above. |
double[][] |
getHashMap()
|
int[] |
getObservationSequence(Gesture gesture)
With this method you can transform a gesture to a discrete symbol sequence with values between 0 and granularity (number of observations). |
double |
getRadius()
|
void |
printMap()
Prints out the current centeroids-map. |
void |
setUpManually(double[][] map,
double radius)
|
void |
trainCenteroids(Gesture gesture)
Trains this Quantizer with a specific gesture. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Quantizer(int numStates)
numStates - number of hidden markov model states| Method Detail |
|---|
public void trainCenteroids(Gesture gesture)
gesture - the summarized virtual gesturepublic int[][] deriveGroups(Gesture gesture)
gesture - the gesturepublic int[] getObservationSequence(Gesture gesture)
gesture - Gesture to get the observationsequence to.public void printMap()
public double getRadius()
public double[][] getHashMap()
public void setUpManually(double[][] map,
double radius)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||