import mir.test: shouldApprox; 0.0.rayleighCCDF.shouldApprox == 1.0; 0.5.rayleighCCDF.shouldApprox == 0.8824969; 1.0.rayleighCCDF.shouldApprox == 0.6065307; 2.0.rayleighCCDF.shouldApprox == 0.1353353; // Can also provide scale parameter 0.5.rayleighCCDF(2.0).shouldApprox == 0.9692332; 1.0.rayleighCCDF(2.0).shouldApprox == 0.8824969; 4.0.rayleighCCDF(2.0).shouldApprox == 0.1353353;
Ditto, with scale parameter.