Skip to contents

Prepare the ernest_sampler for generating nested samples by validating the set of live points within the object, creating live points if none exist yet.

Usage

# S3 method for class 'ernest_sampler'
compile(object, refresh = FALSE, ...)

Arguments

object

An ernest_sampler object.

refresh

Whether to clear existing points from object and generating new ones. If TRUE, the function will clear both the live points and dead points gathered from previous runs.

...

Ignored.

Value

object, invisibly.

Details

Usually, a user will not need to call this method directly, as it is called automatically by generate(). compile() is kept as a distinct step from generate() so users can understand and troubleshoot errors with their log-likelihood and prior transformation functions before a run begins. It also catches errors that were generated during a run: These are more indicative of a problem with ernest itself, and such errors are labelled appropriately.