Click or drag to resize
Accord.NET (logo)

HiddenMarkovModelTDistribution, TObservationDecode Method (TObservation)

Note: This API is now obsolete.

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

Namespace:  Accord.Statistics.Models.Markov
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
[ObsoleteAttribute("Please set Algorithm to Viterbi and call Decide() instead.")]
public int[] Decode(
	TObservation[] observations
Request Example View Source


Type: TObservation
A sequence of observations.

Return Value

Type: Int32
The sequence of states that most likely produced the sequence.
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