The OpenD Programming Language

gammaCDF

Computes the gamma cumulative distribution function (CDF).

@safe pure nothrow @nogc
T
gammaCDF
(
T
)
(
const T x
,
const T shape
,
const T scale = 1
)
if (
isFloatingPoint!T
)

Parameters

x T

value to evaluate CDF

shape T

shape parameter

scale T

scale parameter

Examples

import mir.test: shouldApprox;

2.0.gammaCDF(5).shouldApprox == 0.05265302;
1.0.gammaCDF(5, 0.5).shouldApprox == 0.05265302;

See Also

Meta