The OpenD Programming Language

normalCCDF

Computes the normal complementary cumulative distribution function (CCDF)

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

Parameters

x T

value to evaluate CCDF

mean T

mean

stdDev T

standard deviation

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