ptransition: Probabilities of transition.

Description Usage Arguments Value See Also Examples

View source: R/getters.R

Description

Returns the probabilities of transition from a HMM object. The object has to be initialized with initparams, otherwise it will return numeric(0). The order is row major.

Usage

1
2
3
4
ptransition(x)

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

Arguments

x

the HMM object.

Value

A numeric vector with the probabilities of transition.

See Also

HMM, initparams, transitions, ntransitions

Examples

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

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