viterbi: Global state prediction using Viterbi's algorithm

Description Usage Arguments Value

View source: R/viterbi.R

Description

A function for global decoding of HMM's. Not expected to be called by user. Called by the general HMM function.

Usage

1
viterbi(obs, delta, Gamma, p)

Arguments

obs

Observations.

delta

m-dimensional vector. Initial distribution of Markov chain

Gamma

m x m matrix. Transition probs for Markov chain

p

Function returning the evaluated density given the state.

Value

List of most likely states and decoding probabilities.


AdvancedR-2021/hmm documentation built on Dec. 17, 2021, 7:41 a.m.