public class HiddenMarkovModel extends SimpleMC
| Constructor and Description |
|---|
HiddenMarkovModel(HiddenMarkovModel that)
Copy constructor.
|
HiddenMarkovModel(Matrix A,
RandomNumberGenerator[] B)
Construct a hidden Markov model using the stationary probabilities of the initial states.
|
HiddenMarkovModel(Vector PI,
Matrix A,
RandomNumberGenerator[] B)
Construct a hidden Markov model.
|
| Modifier and Type | Method and Description |
|---|---|
HmmInnovation |
next()
Get the next simulated innovation - state and observation.
|
double |
nextDouble()
Get the next simulated observation.
|
void |
seed(long... seeds)
Seed the random number generator to produce repeatable sequences.
|
public HiddenMarkovModel(Vector PI, Matrix A, RandomNumberGenerator[] B)
PI - the initial state probabilitiesA - the state transition probabilities of the homogeneous hidden Markov chainB - the conditional observation random number generators (distributions)public HiddenMarkovModel(Matrix A, RandomNumberGenerator[] B)
A - the state transition probabilities of the homogeneous hidden Markov chainB - the conditional observation random number generators (distributions)public HiddenMarkovModel(HiddenMarkovModel that)
that - a HiddenMarkovModelpublic void seed(long... seeds)
RandomNumberGeneratorseed in interface RandomNumberGeneratorseed in class SimpleMCseeds - the seedspublic double nextDouble()
nextDouble in interface RandomNumberGeneratornextDouble in class SimpleMCpublic HmmInnovation next()