The OpenD Programming Language

exponentialInvCDF

Computes the exponential inverse cumulative distribution function (InvCDF).

@safe pure nothrow @nogc
T
exponentialInvCDF
(
T
)
(
const T p
,
const T lambda
)
if (
isFloatingPoint!T
)

Parameters

p T

value to evaluate InvCDF

lambda T

number of events in an interval

Examples

import mir.math.common: approxEqual;

assert(0.6321206.exponentialInvCDF(2.0).approxEqual(0.5));
assert(0.7768698.exponentialInvCDF(2.0).approxEqual(0.75));
assert(0.1175031.exponentialInvCDF(0.5).approxEqual(0.25));

See Also

Meta