find_state_seq: Viterbi algorithm for HMM

View source: R/RcppExports.R

find_state_seqR Documentation

Viterbi algorithm for HMM

Description

Find the most likely hidden state sequence of an observed sequence under HMM

Usage

find_state_seq(seq, P1, P, Q)

Arguments

seq

An action sequence coded in integers

P1

initial state probability vector of length K

P

K by K state transition probability matrix

Q

K by N state-action (emission) probability matrix

Value

a hidden state sequence coded in integers


proclhmm documentation built on June 22, 2024, 10:02 a.m.