The OpenD Programming Language

exponentialVar

$(WIKI_D Exponential).

exponentialVar
(
T = double
)
(
in T scale = 1
)

Return Value

Type: ExponentialVariable!T

X ~ Exp(β)

Examples

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

Meta