import mir.test: shouldApprox; 0.0.weibullCDF(3.0).shouldApprox == 0; 0.5.weibullCDF(3.0).shouldApprox == 0.1175031; 1.0.weibullCDF(3.0).shouldApprox == 0.6321206; 1.5.weibullCDF(3.0).shouldApprox == 0.9657819; // Can also provide scale parameter 0.5.weibullCDF(2.0, 3.0).shouldApprox == 0.02739552; 1.0.weibullCDF(2.0, 3.0).shouldApprox == 0.1051607; 1.5.weibullCDF(2.0, 3.0).shouldApprox == 0.2211992;
Computes the Weibull cumulative distribution function (CDF).