constraints: Matrix of constraints.

Description Usage Arguments Value See Also Examples

View source: R/getters.R

Description

Returns the matrix of constraints from a HMM object.

Usage

1
2
3
4
constraints(x)

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

Arguments

x

the HMM object.

Value

A row major sparse matrix as in HMM.

See Also

HMM, nconstraints, transitions

Examples

1
2
3
4
model <- HMMrectangle(3,3)
constraints(model)
nconstraints(model)
nrow(constraints(model)) # should agree

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