nstates: Number of states.

Description Usage Arguments Value See Also Examples

View source: R/getters.R

Description

Returns the number of states from a HMM object.

Usage

1
2
3
4
nstates(x)

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

Arguments

x

the HMM object.

Value

An integer with the number of states of the model.

See Also

ntransitions, nconstraints

Examples

1
2
model <- HMM(5)
nstates(model)

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