
Fetch last likelihood trajectories
Source:R/interface-likelihood.R
dust_likelihood_last_trajectories.RdFetch the last trajectories created by running a likelihood. This
errors if the last call to dust_likelihood_run did not use
save_trajectories = TRUE. We return the states and groups that
were run via the index_state and index_group arguments to
dust_likelihood_run.
Arguments
- obj
A
dust_filterobject, created by dust_filter_create or adust_unfilterobject created by dust_unfilter_create- select_random_particle
Logical, indicating if we should return a history for one randomly selected particle (rather than the entire set of trajectories over all particles). If this is
TRUE, the particle will be selected independently for each group, if the object is grouped. This option is intended to help select a representative trajectory during an MCMC. WhenTRUE, we drop theparticledimension of the return value.