The OpenD Programming Language

gammaVariable

$(WIKI_D Gamma).

import mir.random.variable;
alias gammaVariable = gammaVar

Return Value

X ~ Gamma(𝝰, 𝞫)

Examples

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

Meta