The OpenD Programming Language

WeibullVariable

$(WIKI_D Weibull).

Constructors

this
this(T shape, T scale)

Members

Functions

opCall
T opCall(G gen)
T opCall(G* gen)

Manifest constants

isRandomVariable
enum isRandomVariable;

Variables

max
enum T max;
min
enum T min;

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