Arbitrary sampling from 1D RNG functions from R.
paradox::Sampler -> paradox::Sampler1D -> Sampler1DRfun
rfun(function())
Random number generator function.
trunc(logical(1))
TRUE enables naive rejection sampling, so we stay inside of [lower, upper].
Inherited methods
new()Creates a new instance of this R6 class.
Sampler1DRfun$new(param, rfun, trunc = TRUE)param(ParamSet)
Domain / support of the distribution we want to sample from.
Must be one-dimensional.
rfun(function())
Random number generator function, e.g. rexp to sample from exponential distribution.
trunc(logical(1))
TRUE enables naive rejection sampling, so we stay inside of [lower, upper].
clone()The objects of this class are cloneable with this method.
Sampler1DRfun$clone(deep = FALSE)deepWhether to make a deep clone.
Other Sampler: 
Sampler,
Sampler1D,
Sampler1DCateg,
Sampler1DNormal,
Sampler1DUnif,
SamplerHierarchical,
SamplerJointIndep,
SamplerUnif