/** Creates a Unit (Quantizer&Model). * * @param id * int representation of a gesture "name"/class. */ public GestureModel() { this.numStates = 15; // states empirical value this.numObservations = 20; // observations empirical value this.markovmodell = new HiddenMarkovModel(numStates, numObservations); // init model this.quantizer = new Quantizer(numStates); // init quantizer }
public void CircleTest() { var circle = Circle(); var quantizer = new Quantizer(8); quantizer.trainCenteroids(circle); var sequence = quantizer.getObservationSequence(circle); }