Skip to contents

Create an independent copy of a likelihood object. The new object is decoupled from the random number streams of the parent object. It is also decoupled from the state size of the parent object, so you can use this to create a new object where the system is fundamentally different but everything else is the same.

Usage

dust_likelihood_copy(obj, seed = NULL)

Arguments

obj

A dust_filter object, created by dust_filter_create or a dust_unfilter object created by dust_unfilter_create

seed

The seed for the particle filter (see dust_filter_create)

Value

A new dust_likelihood object