transitions: Transitions.

Description Usage Arguments Value See Also Examples

View source: R/getters.R

Description

Returns the list of possible transitions from a HMM object. Each column represents a transition, the first row is the initial state and the second row is the final state. The transitions are ordered, first on the initial state and then on the final state. Any transition not listed in the matrix is supposed to be not possible (zero probability).

Usage

1
2
3
4
transitions(x)

## S3 method for class 'HMM'
transitions(x)

Arguments

x

the HMM object.

Value

An integer matrix with two rows as in HMM.

See Also

HMM, ntransitions, constraints, ptransition

Examples

1
2
3
4
5
model <- HMM(2)
transitions(model)
model <- addtransition(model,c(1,2))
model <- addtransition(model,c(2,1))
transitions(model)

MobilePhoneESSnetBigData/destim documentation built on Dec. 7, 2020, 7:35 p.m.