u_function: Normalized u-function EM

Description Usage Arguments Value

View source: R/General_functions.R

Description

This function calculates the u-function which is part of the estimation step. Each element in u aligns with the conditional expectation to reach state j given your datapoint x(t). The corresponding weights are already included in the alpha and beta values.

Usage

1
u_function(m, N, alpha, beta)

Arguments

m

number of likelihoods

N

length of the supplied dataset

alpha

normalized alpha matrix

beta

normalized beta matrix

Value

returns the corresponding normalized u's


pneff93/HMM documentation built on Oct. 26, 2019, 8:16 a.m.