Skip to contents

Read and modify the variable names within an ernest_sampler object, or count the variables (i.e., the dimensionality of the nested sampling problem.

Usage

# S3 method for class 'ernest_sampler'
variables(x, ...)

# S3 method for class 'ernest_sampler'
variables(x, ...) <- value

# S3 method for class 'ernest_sampler'
set_variables(x, variables, ...)

# S3 method for class 'ernest_sampler'
nvariables(x, ...)

Arguments

x

An ernest_sampler object.

...

Must be left empty.

variables, value

Either a character vector or empty tibble of variable names, or a scalar value describing the dimensions of the parameter space (in which case, variable names will be denoted with X...i).

Value

For variables(), a character vector of variable names. For variables<-() and set_variables(), the modified ernest_sampler object. For nvariables(), a scalar integer.

Note

The ernest_sampler stores an empty prototype tibble to keep track of the variable names and the dimensionality of the sampled prior space. Overwriting the number of parameters within an existing sampler is not supported.