Description Usage Arguments Value See Also Examples
Sets the initial distribution of states.
The length must match the number of states, and the sum of the vector must be one.
1 | istates(x) <- value
|
x |
A HMM model. |
value |
A numeric vector with a probability for each state that represents the initial distribution of states. |
Changes the initial distribution of states in the model.
HMM, initparams, initsteady, fit
1 2 3 4 5 | model <- HMMrectangle(3,3)
model <- initparams(model)
istates(model)
istates(model) <- (1:9) / sum(1:9)
istates(model)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.