The OpenD Programming Language

exponentialCCDF

Computes the exponential complementary cumulative distribution function (CCDF).

@safe pure nothrow @nogc
T
exponentialCCDF
(
T
)
(
const T x
,
const T lambda
)
if (
isFloatingPoint!T
)

Parameters

x T

value to evaluate CCDF

lambda T

number of events in an interval

Examples

import mir.math.common: approxEqual;

assert(0.5.exponentialCCDF(2.0).approxEqual(1 - exponentialCDF(0.5, 2.0)));
assert(0.75.exponentialCCDF(2.0).approxEqual(1 - exponentialCDF(0.75, 2.0)));
assert(0.25.exponentialCCDF(0.5).approxEqual(1 - exponentialCDF(0.25, 0.5)));

See Also

Meta