The OpenD Programming Language

gevPDF

Computes the generalized extreme value (GEV) probability density function (PDF).

@safe pure nothrow @nogc
T
gevPDF
(
T
)
(
const T x
,
const T mu
,
const T sigma
,
const T xi
)
if (
isFloatingPoint!T
)

Parameters

x T

value to evaluate

mu T

location

sigma T

scale

xi T

shape

Examples

import mir.test: shouldApprox;

gevPDF(-3, 2, 3, -0.5).shouldApprox == 0.02120353011709564;
gevPDF(-1, 2, 3, +0.5).shouldApprox == 0.04884170370329114;
gevPDF(-1, 2, 3, 0.0).shouldApprox == 0.1793740787340172;

See Also

Meta