import mir.test: shouldApprox; 0.0.rayleighCDF.shouldApprox == 0.0; 0.5.rayleighCDF.shouldApprox == 0.1175031; 1.0.rayleighCDF.shouldApprox == 0.3934693; 2.0.rayleighCDF.shouldApprox == 0.8646647; // Can also provide scale parameter 0.5.rayleighCDF(2.0).shouldApprox == 0.03076677; 1.0.rayleighCDF(2.0).shouldApprox == 0.1175031; 4.0.rayleighCDF(2.0).shouldApprox == 0.8646647;
Ditto, with scale parameter.