The OpenD Programming Language

normalVariable

$(WIKI_D Normal).

import mir.random.variable;
alias normalVariable = normalVar

Return Value

X ~ N(μ, σ)

Examples

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

Meta