Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Sampler1DNormal

Sampler1DNormal Class


Description

Normal sampling (potentially truncated) for ParamDbl.

Super classes

Active bindings

mean

(numeric(1))
Mean parameter of the normal distribution.

sd

(numeric(1))
SD parameter of the normal distribution.

Methods

Public methods


Method new()

Creates a new instance of this R6 class.

Usage
Sampler1DNormal$new(param, mean = NULL, sd = NULL)
Arguments
param

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

mean

(numeric(1))
Mean parameter of the normal distribution. Default is mean(c(param$lower, param$upper).

sd

(numeric(1))
SD parameter of the normal distribution. Default is (param$upper - param$lower)/4.


Method clone()

The objects of this class are cloneable with this method.

Usage
Sampler1DNormal$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also


paradox

Define and Work with Parameter Spaces for Complex Algorithms

v0.7.1
LGPL-3
Authors
Michel Lang [cre, aut] (<https://orcid.org/0000-0001-9754-0393>), Bernd Bischl [aut] (<https://orcid.org/0000-0001-6002-6980>), Jakob Richter [aut] (<https://orcid.org/0000-0003-4481-5554>), Xudong Sun [aut] (<https://orcid.org/0000-0003-3269-2307>), Martin Binder [aut], Marc Becker [ctb] (<https://orcid.org/0000-0002-8115-0400>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.