Description Usage Arguments Value
Sample X consequtive states from the hidden markov model
1 | sample_X(sample_X0, L, Px)
|
sample_X0 |
A prior distribution on X0; sample_X0() should return an integer in the range 1:(dim(Px)[1]); e.g. “function() sample(M,1)” for a uniform distribution on 1:M or “function() i” for a point mass at i. |
L |
the length of the desired sequence of samples |
Px |
The transition rates of the markov chain X to be sampled from. |
A vector of samples from X of length L
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.