Accord.NET Framework

## HiddenMarkovModelTDistribution, TObservationDecode Method (TObservation, Double) |

**Note: This API is now obsolete.**

Calculates the most likely sequence of hidden states
that produced the given observation sequence.

Syntax

[ObsoleteAttribute("Please set Algorithm to Viterbi and call Decide() instead.")] public int[] Decode( TObservation[] observations, out double logLikelihood )

- observations
- Type: TObservation

A sequence of observations. - logLikelihood
- Type: SystemDouble

The log-likelihood along the most likely sequence.

The sequence of states that most likely produced the sequence.

Remarks

Decoding problem. Given the HMM M = (A, B, pi) and the observation sequence
O = {o1,o2, ..., oK}, calculate the most likely sequence of hidden states Si
that produced this observation sequence O. This can be computed efficiently
using the Viterbi algorithm.

See Also