Learn R Programming

STAN (version 2.0.3)

HMMEmission-class: This class is a generic container for different emission functions of Hidden Markov Models.

Description

This class is a generic container for different emission functions of Hidden Markov Models.

Arguments

Slots

type
The type of emission function c('Gaussian').
parameters
A list containing the the parameters for each state.
dim
Number of dimensions.
nStates
The number of states.

Examples

Run this code
nStates = 5
means = list(4,11,4,11,-1)
Sigma = lapply(list(4,4,4,4,4), as.matrix)
transMat = matrix(1/nStates, nrow=nStates, ncol=nStates)
initProb = rep(1/nStates, nStates)
HMMEmission(type='Gaussian', parameters=list(mu=means, cov=Sigma), nStates=length(means))

Run the code above in your browser using DataLab