public class Viterbi extends Object
Constructor and Description |
---|
Viterbi(HiddenMarkovModel model)
Constructs an Viterbi algorithm for an HMM.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getViterbiStates(double[] observations)
Gets the most likely sequence of states using Viterbi algorithm (global
decoding), given the observations and the underlying hidden Markov model.
|
public Viterbi(HiddenMarkovModel model)
model
- the underlying hidden Markov modelpublic int[] getViterbiStates(double[] observations)
observations
- the observationsCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.