Learn R Programming

fHMM (version 1.1.1)

decode_states: Decode the underlying hidden state sequence

Description

This function decodes the (most likely) underlying hidden state sequence by applying the Viterbi algorithm for global decoding.

Usage

decode_states(x, verbose = TRUE)

Value

An object of class fHMM_model with decoded state sequence included.

Arguments

x

An object of class fHMM_model.

verbose

Set to TRUE to print progress messages.

References

https://en.wikipedia.org/wiki/Viterbi_algorithm

Examples

Run this code
decode_states(dax_model_3t)
plot(dax_model_3t, type = "ts")

Run the code above in your browser using DataLab