View source: R/ldhmm-simulate_state_transition.R
ldhmm.simulate_state_transition | R Documentation |
This utility allows to simulate the states and obervations over time. Be aware this is a CPU intensive calculation. It uses the multi-core functionality.
ldhmm.simulate_state_transition(object, init = NULL)
object |
an ldhmm object that can supply m, param.nbr and stationary. |
init |
a positive integer specifying number of observations to simulate initially. The default is NULL, indicating that the simulation should use the (local) states and observations from within the object, and simulate the next set of random states and observations according to gamma. When init is an integer, the utility will generate random states and observations according to delta. |
an ldhmm object containing the simulated states and observations.
The observations are stored in the observations
slot.
The states are stored in the states.local
slot.
Stephen H. Lihn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.