Learn R Programming

fHMM (version 0.3.0)

apply_viterbi: Viterbi algorithm

Description

Applies the Viterbi algorithm (https://en.wikipedia.org/wiki/Viterbi_algorithm) for state decoding.

Usage

apply_viterbi(data, fit, controls)

Arguments

data

A list of processed data information.

fit

A list of fitted model information.

controls

A list of controls.

Value

A vector (in case of a HMM) or a matrix (in case of a hierarchical HMM) of decoded states.