The OpenD Programming Language

gammaVar

$(WIKI_D Gamma).

gammaVar
(
T = double
)
(
in T shape = 1
,
in T scale = 1
)

Parameters

T

floating point type

Return Value

Type: GammaVariable!T

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