The OpenD Programming Language

logisticCCDF

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

  1. T logisticCCDF(T x)
  2. T logisticCCDF(T x, T location, T scale)
    @safe pure nothrow @nogc
    T
    logisticCCDF
    (
    T
    )
    (
    const T x
    ,
    const T location
    ,
    const T scale
    )
    if (
    isFloatingPoint!T
    )

Parameters

x T

value to evaluate CCDF

location T

location parameter

scale T

scale parameter

Examples

import mir.test: shouldApprox;

logisticCCDF(-2.0).shouldApprox == 0.8807971;
logisticCCDF(-1.0).shouldApprox == 0.7310586;
logisticCCDF(-0.5).shouldApprox == 0.6224593;
logisticCCDF(0.0).shouldApprox == 0.5;
logisticCCDF(0.5).shouldApprox == 0.3775407;
logisticCCDF(1.0).shouldApprox == 0.2689414;
logisticCCDF(2.0).shouldApprox == 0.1192029;

// Can also provide location/scale parameters
logisticCCDF(-1.0, 2.0, 3.0).shouldApprox == 0.7310586;
logisticCCDF(1.0, 2.0, 3.0).shouldApprox == 0.5825702;
logisticCCDF(4.0, 2.0, 3.0).shouldApprox == 0.3392436;

Meta