Sampler1DCateg {paradox} | R Documentation |
Sampler1DCateg Class
Description
Sampling from a discrete distribution, for a ParamSet
containing a single p_fct()
or p_lgl()
.
Super classes
paradox::Sampler
-> paradox::Sampler1D
-> Sampler1DCateg
Public fields
prob
(
numeric()
| NULL)
Numeric vector ofparam$nlevels
probabilities.
Methods
Public methods
Inherited methods
Method new()
Creates a new instance of this R6 class.
Usage
Sampler1DCateg$new(param, prob = NULL)
Arguments
param
(
ParamSet
)
Domain / support of the distribution we want to sample from. Must be one-dimensional.prob
(
numeric()
| NULL)
Numeric vector ofparam$nlevels
probabilities, which is uniform by default.
Method clone()
The objects of this class are cloneable with this method.
Usage
Sampler1DCateg$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
See Also
Other Sampler:
Sampler
,
Sampler1D
,
Sampler1DNormal
,
Sampler1DRfun
,
Sampler1DUnif
,
SamplerHierarchical
,
SamplerJointIndep
,
SamplerUnif
[Package paradox version 1.0.1 Index]