Fetch the last history created by running a likelihood. This
errors if the last call to dust_likelihood_run did not use
save_history = TRUE
.
Arguments
- obj
A
dust_filter
object, created by dust_filter_create or adust_unfilter
object created by dust_unfilter_create- index_group
An optional vector of group indices to run the calculation for. You can use this to run a subset of possible groups, once
obj
is initialised (this argument must beNULL
on the first call).- select_random_particle
Logical, indicating if we should return a history for one randomly selected particle (rather than the entire history). 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 theparticle
dimension of the return value.