The OpenD Programming Language

chiSquared

$(WIKI_D Chi-squared).

chiSquared
(
T = double
)
(
size_t k
)

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