The OpenD Programming Language

paretoInvCDF

Computes the pareto inverse cumulative distribution function (InvCDF).

@safe pure nothrow @nogc
T
paretoInvCDF
(
T
)
(
const T p
,
const T xMin
,
const T alpha
)
if (
isFloatingPoint!T
)

Parameters

p T

value to evaluate InvCDF

xMin T

scale parameter

alpha T

shape parameter

Examples

import mir.test: shouldApprox;

0.0.paretoInvCDF(1, 3).shouldApprox == 1;
0.875.paretoInvCDF(1, 3).shouldApprox == 2;
0.8024691.paretoInvCDF(2, 4).shouldApprox == 3;

See Also

Meta