public class HmmViterbi
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
HmmViterbi(HiddenMarkovModel model)
Construct an Viterbi algorithm for an HMM.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getViterbiStates(double[] observations)
Generate the most likely sequence of states by using Viterbi algorithm (global decoding),
given the observations and the parameters of the underlying hidden Markov model.
|
public HmmViterbi(HiddenMarkovModel model)
model - the underlying hidden Markov modelpublic int[] getViterbiStates(double[] observations)
observations - the observations