The OpenD Programming Language

uniformInvCDF

Computes the uniform inverse cumulative distribution function (InvCDF)

@safe pure nothrow @nogc
T
uniformInvCDF
(
T
)
(
const T p
,
const T lower = 0
,
const T upper = 1
)
if (
isFloatingPoint!T
)

Parameters

p T

value to evaluate InvCDF

lower T

lower bound

upper T

upper bound

Examples

import mir.math.common: approxEqual;
assert(0.5.uniformInvCDF == 0.5);
assert((1.0 / 3).uniformInvCDF(0.0, 1.5).approxEqual(0.5));
assert((3.0 / 4).uniformInvCDF(1.0, 3.0).approxEqual(2.5));

See Also

Meta