gettransmatrix: Transformation matrix

Description Usage Arguments Value See Also Examples

View source: R/getters.R

Description

Returns the transformation matrix that transforms the minimal parameters into the probabilities of transition. The transformation matrix allows obtains the probabilities of transition from the minimal set of parameters. If we append an one at the end of the vector of parameters, the product of this matrix by such vector is the probabilities of transition vector.

Usage

1
2
3
4
gettransmatrix(x)

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

Arguments

x

the HMM object.

Value

A matrix.

See Also

minparams, ptransition, rparams, fit

Examples

1
2
3
4
5
model <- HMMrectangle(3,3)
model <- initparams(model)
model <- minparams(model)
# Should be close to zero
range(ptransition(model) - gettransmatrix(model) %*% c(rparams(model), 1))

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