HMMEmission: Create a HMMEmission object

Description Usage Arguments Examples

View source: R/AllClasses.R

Description

This function creates a HMMEmission object.

Usage

1
HMMEmission(type = character(), parameters = list(), nStates = numeric())

Arguments

type

The type of emission function c('Gaussian').

parameters

A list containing the the parameters for each state.

nStates

The number of states.

Examples

1
2
3
4
5
6
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))

STAN documentation built on May 31, 2017, 11:25 a.m.

Search within the STAN package
Search all R packages, documentation and source code