The OpenD Programming Language

paretoCDF

Computes the pareto cumulative distribution function (CDF).

@safe pure nothrow @nogc
T
paretoCDF
(
T
)
(
const T x
,
const T xMin
,
const T alpha
)
if (
isFloatingPoint!T
)

Parameters

x T

value to evaluate CDF

xMin T

scale parameter

alpha T

shape parameter

Examples

import mir.test: shouldApprox;

1.0.paretoCDF(1, 3).shouldApprox == 0;
2.0.paretoCDF(1, 3).shouldApprox == 0.875;
3.0.paretoCDF(2, 4).shouldApprox == 0.8024691;

See Also

Meta