The OpenD Programming Language

betaProportionCDF

Computes the beta proportion cumulatve distribution function (CDF).

@safe pure nothrow @nogc
T
betaProportionCDF
(
T
)
(
const T x
,
const T mu
,
const T kappa
)
if (
isFloatingPoint!T
)

Parameters

x T

value to evaluate CDF

mu T

shape parameter #1

kappa T

shape parameter #2

Examples

import mir.math.common: approxEqual;

assert(0.5.betaProportionCDF(0.5, 2).approxEqual(0.5));
assert(0.75.betaProportionCDF((1.0 / 3), 3).approxEqual(0.9375));
assert(0.25.betaProportionCDF((1.0 / 9), 4.5).approxEqual(0.8588867));

See Also

Beta Proportion Distribution, $(DISTREF beta, betaCDF)

Meta