Sampler | R Documentation |
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
)
The ParamSet
to associated with this Sampler
.
sample()
Sample n
values from the distribution.
Sampler$sample(n)
n
(integer(1)
).
Design
.
format()
Helper for print outputs.
Sampler$format(...)
...
(ignored).
print()
Printer.
Sampler$print(...)
...
(ignored).
clone()
The objects of this class are cloneable with this method.
Sampler$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other Sampler:
Sampler1D
,
Sampler1DCateg
,
Sampler1DNormal
,
Sampler1DRfun
,
Sampler1DUnif
,
SamplerHierarchical
,
SamplerJointIndep
,
SamplerUnif
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.