The OpenD Programming Language

logNormalVar

$(WIKI_D Log-normal).

logNormalVar
(
T = double
)
(
in T normalLocation = 0.0
,
in T normalScale = 1
)

Examples

auto rv = logNormalVar;
static assert(isRandomVariable!(typeof(rv)));
import mir.random.engine;
auto x = rv(rne);
import mir.random.engine;
Random* gen = threadLocalPtr!Random;
auto rv = LogNormalVariable!double(0, 1);
auto x = rv(gen);

Meta