norm_logforward: Compute log forward probabilities

Description Usage Arguments Value

View source: R/norm_logforward.R

Description

This function computes the log forward probabilities of the data based on the HMM hmm (with normal state dependent distributions).

Usage

1
norm_logforward(x, hmm, state_dep_dist_pooled = FALSE)

Arguments

x

The data to be fit with an HMM in the form of a 3D array. The first index (row) corresponds to time, the second (column) to the variable number, and the third (matrix number) to the subject number.

hmm

A list of parameters that specify the normal HMM, including num_states, num_variables, num_subjects, mu, sigma, gamma, delta.

state_dep_dist_pooled

A logical variable indiacting whether the state dependent distribution parameters mu and sigma should be treated as equal for all subjects.

Value

A list of matrices (one for each subject) of the forward variables.


simonecollier/lizardHMM documentation built on Dec. 23, 2021, 2:24 a.m.