Skip to contents

Use this function to perform nested sampling until a given criterion is met. Calling generate() implicitly calls compile() to ensure the sampler object is valid before running samples.

Usage

# S3 method for class 'ernest_sampler'
generate(
  x,
  max_iterations = Inf,
  max_calls = Inf,
  min_logz = 0.05,
  refresh = FALSE,
  ...
)

Arguments

x

An object of class ernest_sampler.

max_iterations

The maximum number of iterations to perform. If set to Inf, this stopping criterion is ignored.

max_calls

The maximum number of calls to the likelihood function. If set to Inf, this stopping criterion is ignored.

min_logz

The minimum log-evidence value to achieve. Must be a number strictly larger than zero.

refresh

Whether to clear existing points from the sampler, starting a run from scratch.

...

Must be empty.

Value

x, invisibly.