The OpenD Programming Language

exponentialVariable

$(WIKI_D Exponential).

import mir.random.variable;
alias exponentialVariable = exponentialVar

Return Value

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