This is the abstract base class for sampling objects like Sampler1D, SamplerHierarchical or SamplerJointIndep.
param_set(ParamSet) Domain / support of the distribution we want to sample from.
new()Creates a new instance of this R6 class.
Note that this object is typically constructed via derived classes, e.g., Sampler1D.
Sampler$new(param_set)
param_set(ParamSet) Domain / support of the distribution we want to sample from. ParamSet is cloned on construction.
sample()Sample n values from the distribution.
Sampler$sample(n)
n(integer(1)).
format()Helper for print outputs.
Sampler$format()
print()Printer.
Sampler$print(...)
...(ignored).
clone()The objects of this class are cloneable with this method.
Sampler$clone(deep = FALSE)
deepWhether to make a deep clone.
Other Sampler:
Sampler1DCateg,
Sampler1DNormal,
Sampler1DRfun,
Sampler1DUnif,
Sampler1D,
SamplerHierarchical,
SamplerJointIndep,
SamplerUnif