Description Usage Arguments Details Value References
Update state sequence
1 | updateState(obs, switch, updateLim, updateProbs = NULL, Q)
|
obs |
Matrix of observations, with columns "x", "y", "time", and "state" |
switch |
Matrix of state switches, with columns "time" and "state" |
updateLim |
Vector of two elements: min and max length of updated interval (each an integer, corresponding to a number of observations) |
updateProbs |
Vector of probabilities of picking each number from updateLim[1] to updateLim[2], for the length of the update interval |
Q |
Square matrix of transition rates |
The update is done with the function sample_path
from the
package ECctmc (Fintzi, 2017).
List of two elements:
newSwitch |
Updated matrix of transitions |
newData |
Updated matrix of all data (observations and transitions) |
Jon Fintzi (2017). ECctmc: Simulation from Endpoint-Conditioned Continuous Time Markov Chains. R package version 0.2.4. https://CRAN.R-project.org/package=ECctmc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.