coupled2_CPF | R Documentation |
Runs two coupled conditional particle filters (at each discretization level).
coupled2_CPF(
model,
theta,
discretization,
observations,
nparticles,
resampling_threshold = 1,
coupled_resampling,
ref_trajectory1,
ref_trajectory2,
treestorage = FALSE
)
model |
a list representing a hidden Markov model, e.g. |
theta |
a vector of parameters as input to model functions |
discretization |
list containing stepsize, nsteps, statelength and obstimes |
observations |
a matrix of observations, of size nobservations x ydimension |
nparticles |
number of particles |
resampling_threshold |
ESS proportion below which resampling is triggered (always resample at observation times by default) |
coupled_resampling |
a 2-marginal coupled resampling scheme, such as |
ref_trajectory1 |
a matrix of first reference trajectory, of size xdimension x statelength |
ref_trajectory2 |
a matrix of second reference trajectory, of size xdimension x statelength |
treestorage |
logical specifying tree storage of Jacob, Murray and Rubenthaler (2013); if missing, this function store all states and ancestors |
a pair of new trajectories stored as matrices of size xdimension x statelength.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.