The OpenD Programming Language

weibullVar

$(WIKI_D Weibull).

weibullVar
(
T = double
)
(
T shape = 1
,
T scale = 1
)

Examples

import mir.random.engine;
auto gen = Random(unpredictableSeed);
auto rv = weibullVar;
static assert(isRandomVariable!(typeof(rv)));
auto x = rv(gen);
import mir.random.engine;
Random* gen = threadLocalPtr!Random;
auto rv = WeibullVariable!double(3, 2);
auto x = rv(gen);

Meta