The OpenD Programming Language

weibullVariable

$(WIKI_D Weibull).

import mir.random.variable;
alias weibullVariable = weibullVar

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