Description Usage Arguments Value See Also Examples
Returns the list of possible transitions from a HMM object. Each column represents a transition, the first row is the initial state and the second row is the final state. The transitions are ordered, first on the initial state and then on the final state. Any transition not listed in the matrix is supposed to be not possible (zero probability).
1 2 3 4 | transitions(x)
## S3 method for class 'HMM'
transitions(x)
|
x |
the HMM object. |
An integer matrix with two rows as in HMM
.
HMM, ntransitions, constraints, ptransition
1 2 3 4 5 | model <- HMM(2)
transitions(model)
model <- addtransition(model,c(1,2))
model <- addtransition(model,c(2,1))
transitions(model)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.