public class HmmTrainByEM extends HiddenMarkovModel
| Constructor and Description |
|---|
HmmTrainByEM(int[] observations,
HiddenMarkovModel model0,
int nIteraions)
Construct an HMM model by training an initial model using an EM algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
static HiddenMarkovModel |
train(HiddenMarkovModel model0,
int[] observations)
Construct a trained (discrete) hidden Markov model, one iteration.
|
B, nSymbolsnext, nextDouble, seedpublic HmmTrainByEM(int[] observations,
HiddenMarkovModel model0,
int nIteraions)
observations - an integer array of observation symbols (length = T).
Each symbol is a positive integer less than or equal to M (the number of observation symbols per state).model0 - an initial modelnIteraions - the number of iterationspublic static HiddenMarkovModel train(HiddenMarkovModel model0, int[] observations)
model0 - the initial hidden Markov modelobservations - an integer array of observation symbols (length = T).
Each symbol is a positive integer less than or equal to M (the number of observation symbols per state).