Sampler1DCateg

0th

Percentile

Sampler1DCateg Class

Sampling from a discrete distribution, for a ParamFct or ParamLgl.

Keywords
datasets
Format

R6::R6Class inheriting from Sampler1D.

Construction

smpl = Sampler1DCateg$new(param, prob = NULL)
  • param :: Param Domain / support of the distribution we want to sample from.

  • prob :: numeric() Numeric vector of param$nlevels probabilities, which is uniform by default.

Fields

See Sampler1D. Additionally, the class provides:

  • prob :: numeric(n) Numeric vector of param$nlevels probabilities, which is uniform by default.

Methods

See Sampler1D.

See Also

Other Sampler: Sampler1DNormal, Sampler1DRfun, Sampler1DUnif, Sampler1D, SamplerHierarchical, SamplerJointIndep, SamplerUnif, Sampler

Aliases
  • Sampler1DCateg
Documentation reproduced from package paradox, version 0.1.0, License: LGPL-3

Community examples

Looks like there are no examples yet.