Description Usage Arguments Value See Also Examples
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.
1 2 3 4 | gettransmatrix(x)
## S3 method for class 'HMM'
gettransmatrix(x)
|
x |
the HMM object. |
A matrix.
minparams, ptransition, rparams, fit
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.