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