The OpenD Programming Language

paretoPDF

Computes the pareto probability density function (PDF).

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

Parameters

x T

value to evaluate PDF

xMin T

scale parameter

alpha T

shape parameter

Examples

import mir.test: shouldApprox;

1.0.paretoPDF(1, 3).shouldApprox == 3;
2.0.paretoPDF(1, 3).shouldApprox == 0.1875;
3.0.paretoPDF(2, 4).shouldApprox == 0.2633745;

See Also

Meta