Transitions: Get transitions of a (bd)HMM

Description Usage Arguments Value See Also Examples

View source: R/AllClasses.R

Description

This function returns the transition matrix of a (bd)HMM.

Usage

1

Arguments

hmm

An object of class HMM or bdHMM.

Value

The transitions as a nStates x nStates matrix.

See Also

HMM, bdHMM

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(initProb=initProb, transMat=transMat, emission=HMMEmission(type='Gaussian', parameters=list(mu=means, cov=Sigma), nStates=length(means)), nStates=nStates, status='initial')
Transitions(hmm)


STAN documentation built on May 20, 2017, 9:35 p.m.
Search within the STAN package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.