spim_particle_filter: Construct a particle filter

View source: R/fit.R

spim_particle_filterR Documentation

Construct a particle filter

Description

Construct a particle filter

Usage

spim_particle_filter(
  data,
  pars,
  control,
  deterministic = FALSE,
  initial = NULL,
  initial_date = 0
)

Arguments

data

Data, from spim_data

pars

Parameters, from spim_fit_pars_load

control

A list of control parameters including n_particles, n_threads and compiled_compare, typically the particle_filter element of the result of spim_control()

deterministic

Logical, indicating if the particle filter to built is to be run deterministically or stochastically

initial

Optionally a matrix of model state or an initial value function.

initial_date

The initial date to start from. Typically this should be 0 for a parent fit, and be the restart date for a restart date.

Value

A mcstate::particle_filter object


mrc-ide/spimalot documentation built on Oct. 15, 2024, 12:15 p.m.