The OpenD Programming Language

logisticInvCDF

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

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

Parameters

p T

value to evaluate InvCDF

location T

location parameter

scale T

scale parameter

Examples

import mir.test: shouldApprox;

logisticInvCDF(0.0).shouldApprox == -double.infinity;
logisticInvCDF(0.25).shouldApprox == -1.098612;
logisticInvCDF(0.5).shouldApprox == 0.0;
logisticInvCDF(0.75).shouldApprox == 1.098612;
logisticInvCDF(1.0).shouldApprox == double.infinity;

// Can also provide location/scale parameters
logisticInvCDF(0.2, 2, 3).shouldApprox == -2.158883;
logisticInvCDF(0.4, 2, 3).shouldApprox == 0.7836047;
logisticInvCDF(0.6, 2, 3).shouldApprox == 3.216395;
logisticInvCDF(0.8, 2, 3).shouldApprox == 6.158883;

See Also

Meta