The OpenD Programming Language

betaInvCDF

Computes the beta inverse cumulative distribution function (InvCDF).

@safe pure nothrow @nogc
T
betaInvCDF
(
T
)
(
const T p
,
const T alpha
,
const T beta
)
if (
isFloatingPoint!T
)

Parameters

p T

value to evaluate InvCDF

alpha T

shape parameter #1

beta T

shape parameter #2

Examples

import mir.math.common: approxEqual;

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

See Also

Meta