ntransitions: Number of transitions.

Description Usage Arguments Value See Also Examples

View source: R/getters.R

Description

Returns the number of possible transitions from a HMM object.

Usage

1
2
3
4
ntransitions(x)

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

Arguments

x

the HMM object.

Value

An integer with the number of possible transitions of the model.

See Also

transitions, nstates, nconstraints

Examples

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

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