dnorm.hsmm: Emission density function for normal emission distribution

View source: R/spec_functions.R

dnorm.hsmmR Documentation

Emission density function for normal emission distribution

Description

Calculates the density of observations x for state j given the parameters in model. This is used for the Gaussian emission distribution of a HMM or HSMM and is a suitable prototype for user's to make their own custom distributions.

Usage

dnorm.hsmm(x, j, model)

Arguments

x

Observed value

j

State

model

A hsmmspec or hmmspec object

Details

This is used by hmm and hsmm to calculate densities for use in the E-step of the EM algorithm. It can also be used as a template for users wishing to building their own emission distributions

Value

A vector of probability densities.

Author(s)

Jared O'Connell jaredoconnell@gmail.com


mhsmm documentation built on Aug. 23, 2023, 9:06 a.m.