public class HmmForwardBackward
extends java.lang.Object
implements java.io.Serializable
αt(i) = p(ω1, ω2, ... ωt, qt = si | λ)The backward probability, β, is the probability of the system in state si at time t, and the partial observations from then onward till time t.
βt(i) = p(ωt+1, ωt+2, ... ωT | qt = si, λ)
| Constructor and Description |
|---|
HmmForwardBackward(HiddenMarkovModel model)
Construct the forward and backward probability matrix generator for an HMM model.
|
| Modifier and Type | Method and Description |
|---|---|
Matrix |
scaledAlpha(int[] observations)
Get the scaled forward probability matrix, dimension (T * N).
|
Matrix |
scaledBeta(int[] observations)
Get the scaled backward probability matrix, dimension (T * N).
|
public HmmForwardBackward(HiddenMarkovModel model)
model - a (discrete) hidden Markov modelpublic Matrix scaledAlpha(int[] observations)
observations - an integer array of observation symbols (length = T).
Each symbol is a positive integer less than or equal to M (the number of observation symbols per state).public Matrix scaledBeta(int[] observations)
observations - an integer array of observation symbols (length = T).
Each symbol is a positive integer less than or equal to M (the number of observation symbols per state).