Click or drag to resize
Accord.NET (logo)

IHybridMarkovModelDecode Method

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

Namespace:  Accord.Statistics.Models.Markov.Hybrid
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
int[] Decode(
	double[][] observations,
	out double logLikelihood
Request Example View Source


Type: SystemDouble
A sequence of observations.
Type: SystemDouble
The state optimized probability.

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