public class HmmBaumWelch extends HiddenMarkovModel
| Modifier and Type | Class and Description |
|---|---|
static class |
HmmBaumWelch.TrainedModel
the result of the Baum-Welch algorithm
|
| Constructor and Description |
|---|
HmmBaumWelch(double[] observations,
HiddenMarkovModel model0,
double epsilon,
int maxIterations)
Construct a mixture HMM model by training an initial model using the Baum-Welch algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
static HmmBaumWelch.TrainedModel |
train(HiddenMarkovModel model0,
double[] observations)
Construct a trained mixture hidden Markov model, one iteration.
|
density, getDistributionnext, nextDouble, seedpublic HmmBaumWelch(double[] observations,
HiddenMarkovModel model0,
double epsilon,
int maxIterations)
observations - the observationsmodel0 - an initial modelepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0maxIterations - the maximum number of iterationspublic static HmmBaumWelch.TrainedModel train(HiddenMarkovModel model0, double[] observations)
model0 - the initial hidden Markov modelobservations - the observations