Skip to contents

state_prob will calculate the probability of being in state at state_time based on the HMM and the data.

Usage

state_prob(state,state_time,HM,X)

Arguments

state

A Natural Numbers from 1 up to number of hidden states.

state_time

A Natural Numbers from 1 up to number of ob.

HM

A HMM object.

X

vector of observations.

Value

A numerical value between 0 and 1, which is the probability for having state at time state_time given the model and data.