|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.jahmm.toolbox.MarkovGenerator<O>
public class MarkovGenerator<O extends Observation>
Generates sequences of markovian observations given a HMM.
Constructor Summary | |
---|---|
MarkovGenerator(Hmm<O> hmm)
Initializes a Markovian generator. |
Method Summary | |
---|---|
void |
newSequence()
Finds a new state according to the initial (pi) probabilities of each state. |
O |
observation()
Generates a new (pseudo) random observation. |
java.util.List<O> |
observationSequence(int length)
Generates a new (pseudo) random observation sequence and start a new one. |
int |
stateNb()
Returns the state number of the current state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarkovGenerator(Hmm<O> hmm)
hmm
- An Hidden Markov Model that perfectly models the sequences
generated by this object.Method Detail |
---|
public O observation()
public java.util.List<O> observationSequence(int length)
length
- The length of the sequence.
public void newSequence()
public int stateNb()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |