get_path_bs | R Documentation |
Get a path from the output of a particle filter by sampling an ancestry.
get_path_bs(
model,
discretization,
xtrajectory,
ancestries,
ancestor,
store_logweights
)
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 |
store_logweights |
a matrix of log-weights, of size nobservations x nparticles |
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.