[−][src]Function bio::stats::hmm::backward
pub fn backward<O, M: Model<O>>(
hmm: &M,
observations: &[O]
) -> (Array2<LogProb>, LogProb)
Execute the backward algorithm and return the backward probabilities as LogProb
values
and the resulting backward probability.
Arguments
hmm
- theModel
to run the backward algorithm onobservations
- a slice of observation values to use in the algorithm
Result
The resulting pair (P, p) is the backward probability table (P[[s, o]]
is the entry
for state s
and observation o
) and the overall probability for observations
(as
LogProb
).
Type Parameters
O
- the observation typeM
- typeModel
type