The OpenD Programming Language

logNormalCCDF

Ditto, with location and scale parameters (by standardizing x).

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

Parameters

x T

value to evaluate CCDF

mean T

location parameter

stdDev T

scale parameter

Examples

import mir.test: shouldApprox;

logNormalCCDF(0.0).shouldApprox == 1;
logNormalCCDF(1.0).shouldApprox == 0.5;
logNormalCCDF(2.0).shouldApprox == 0.2441086;
logNormalCCDF(3.0).shouldApprox == 0.1359686;

// Can include location/scale
logNormalCCDF(0.0, 1, 2).shouldApprox == 1;
logNormalCCDF(1.0, 1, 2).shouldApprox == 0.6914625;
logNormalCCDF(2.0, 1, 2).shouldApprox == 0.560969;
logNormalCCDF(3.0, 1, 2).shouldApprox == 0.4803377;

Meta