Learn R Programming

paradox (version 0.3.0)

Sampler1D: Sampler1D Class

Description

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

Arguments

Super class

paradox::Sampler -> Sampler1D

Active bindings

param

(Param) Returns the one Parameter that is sampled from.

Methods

Public methods

Method new()

Creates a new instance of this R6 class.

Note that this object is typically constructed via derived classes, e.g., Sampler1DUnif.

Usage

Sampler1D$new(param)

Arguments

param

(Param) Domain / support of the distribution we want to sample from.

Method clone()

The objects of this class are cloneable with this method.

Usage

Sampler1D$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

See Also

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