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;
Ditto, with location and scale parameters (by standardizing x).