get_path | R Documentation |
Get a path from the output of a particle filter by tracing an ancestry.
get_path(model, discretization, xtrajectory, ancestries, ancestor)
model |
a list representing a hidden Markov model, e.g. |
discretization |
list containing stepsize, nsteps, statelength and obstimes |
xtrajectory |
an array of particle states, of size statelength x xdimension x nparticles |
ancestries |
a matrix of ancestor indexes, of size statelength x nparticles |
ancestor |
an ancestor index at the terminal step |
a matrix containing a new trajectory of size xdimension x statelength.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.