The OpenD Programming Language

normalCCDF

Computes the normal complementary cumulative distribution function (CCDF)

  1. T normalCCDF(T x, T mean, T stdDev)
  2. T normalCCDF(T a)
    @safe pure nothrow @nogc
    T
    normalCCDF
    (
    T
    )
    (
    const T a
    )
    if (
    isFloatingPoint!T
    )

Examples

import mir.math.common: approxEqual;

assert(0.5.normalCCDF.approxEqual(1 - normalCDF(0.5)));
assert(0.5.normalCCDF(0, 1.5).approxEqual(1 - normalCDF(0.5, 0, 1.5)));
assert(1.5.normalCCDF(1, 3).approxEqual(1 - normalCDF(1.5, 1, 3)));

See Also

Meta