Description Usage Arguments Value See Also Examples
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.
1 2 3 4 | ptransition(x)
## S3 method for class 'HMM'
ptransition(x)
|
x |
the HMM object. |
A numeric vector with the probabilities of transition.
HMM, initparams, transitions, ntransitions
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.