Sampler
From paradox v0.1.0
by Michel Lang
Sampler Class
This is the abstract base class for sampling objects like Sampler1D, SamplerHierarchical or SamplerJointIndep.
- Keywords
- datasets
Format
R6::R6Class object.
Construction
Note: This object is typically constructed via a derived classes.
smpl = Sampler$new(param_set)
param_set
:: ParamSet Domain / support of the distribution we want to sample from. ParamSet is cloned on construction.
Fields
param_set
:: ParamSet Domain / support of the distribution we want to sample from.
Methods
sample(n)
integer(1)
-> Design Samplen
values from the distribution.
See Also
Other Sampler: Sampler1DCateg
,
Sampler1DNormal
,
Sampler1DRfun
, Sampler1DUnif
,
Sampler1D
,
SamplerHierarchical
,
SamplerJointIndep
,
SamplerUnif
Community examples
Looks like there are no examples yet.