Get stateNames of a (bd)HMM

Description

This function returns the names of states.

Usage

1

Arguments

hmm

An object of class HMM or bdHMM.

Value

A character vector

Examples

1
2
3
4
5
6
7
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)
hmm = HMM(stateNames=as.character(1:5), initProb=initProb, transMat=transMat, emission=HMMEmission(type='Gaussian', parameters=list(mu=means, cov=Sigma), nStates=length(means)), nStates=nStates, status='initial')
StateNames(hmm)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.