The OpenD Programming Language

betaCDF

Computes the beta cumulatve distribution function (CDF).

@safe pure nothrow @nogc
T
betaCDF
(
T
)
(
const T x
,
const T alpha
,
const T beta
)
if (
isFloatingPoint!T
)

Parameters

x T

value to evaluate CDF

alpha T

shape parameter #1

beta T

shape parameter #2

Examples

import mir.math.common: approxEqual;

assert(0.5.betaCDF(1, 1).approxEqual(0.5));
assert(0.75.betaCDF(1, 2).approxEqual(0.9375));
assert(0.25.betaCDF(0.5, 4).approxEqual(0.8588867));

See Also

Meta