|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.jahmm.ViterbiCalculator
public class ViterbiCalculator
This class can be used to compute the most probable state sequence matching a given observation sequence (given an HMM).
| Constructor Summary | |
|---|---|
ViterbiCalculator(java.util.List<? extends O> oseq,
Hmm<O> hmm)
Computes the most likely state sequence matching an observation sequence given an HMM. |
|
| Method Summary | |
|---|---|
double |
lnProbability()
Returns the neperian logarithm of the probability of the given observation sequence on the most likely state sequence of the given HMM. |
int[] |
stateSequence()
Returns a (clone of) the array containing the computed most likely state sequence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViterbiCalculator(java.util.List<? extends O> oseq,
Hmm<O> hmm)
hmm - A Hidden Markov Model;oseq - An observations sequence.| Method Detail |
|---|
public double lnProbability()
ln(P[O,S|H]) where O is the given
observation sequence, H the given HMM and
S the most likely state sequence of this observation
sequence given this HMM.public int[] stateSequence()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||