The OpenD Programming Language

ChiSquaredVariable

$(WIKI_D Chi-squared).

Constructors

this
this(size_t k)

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

auto rv = chiSquared(3);
static assert(isRandomVariable!(typeof(rv)));
import mir.random.engine;
auto x = rv(rne);
import mir.random.engine;
Random* gen = threadLocalPtr!Random;
auto rv = ChiSquaredVariable!double(3);
auto x = rv(gen);

Meta