|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.hmm.HmmSim
public class HmmSim
This class simulates a (discrete) hidden Markov model as defined by Rabiner (1989).
| Constructor Summary | |
|---|---|
HmmSim(HiddenMarkovModel model)
Construct a simulator for a (discrete) hidden Markov model. |
|
| Method Summary | |
|---|---|
int[] |
simObservations(int[] qt)
Simulate the observations {O_t} (t = 1, 2, ..., T) for a (discrete) hidden Markov model. |
int[] |
simStates(int T)
Simulate the hidden states {q_t} (t = 1, 2, ..., T) for a (discrete) hidden Markov model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HmmSim(HiddenMarkovModel model)
model - a (discrete) hidden Markov model| Method Detail |
|---|
public int[] simStates(int T)
T - the length of the (univariate) time series (states and observations) to generate
public int[] simObservations(int[] qt)
qt - the hidden states {q_t}
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||