Ejemplo n.º 1
0
 /** 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
 }
Ejemplo n.º 2
0
 /** 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
 }
Ejemplo n.º 3
0
        public void CircleTest()
        {
            var circle = Circle();

            var quantizer = new Quantizer(8);

            quantizer.trainCenteroids(circle);

            var sequence = quantizer.getObservationSequence(circle);
        }