1D sampler, abstract base class for Sampler like Sampler1DUnif, Sampler1DRfun, Sampler1DCateg and Sampler1DNormal.

Format

R6::R6Class inheriting from Sampler.

Construction

Note: This object is typically constructed via a derived classes, e.g. Sampler1DUnif, Sampler1DRfun, Sampler1DCateg or Sampler1DNormal.

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

Fields

See Sampler. Additionally, the class provides:

  • param :: Param
    Returns the one Parameter that is sampled from.

Methods

See Sampler.

See also