Class Hmm2

java.lang.Object
  extended by Hmm2

public class Hmm2
extends java.lang.Object

This is a template for a second-order HMM class. Fill in code for the constructor. You will also need to add some additional public fields and/or methods to allow access to this class, but you should not change the signature of the constructor.


Constructor Summary
Hmm2(int numStates, int numOutputs, int[][] state, int[][] output)
          Constructs a second-order HMM from the given data.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hmm2

public Hmm2(int numStates,
            int numOutputs,
            int[][] state,
            int[][] output)
Constructs a second-order HMM from the given data. The HMM will have numStates possible states and numOutputs possible outputs. The HMM is then built from the given set of state and output sequences. In particular, state[i][j] is the j-th element of the i-th state sequence, and similarly for output[i][j].