import mir.test: shouldApprox; 0.0.weibullCCDF(3.0).shouldApprox == 1; 0.5.weibullCCDF(3.0).shouldApprox == 0.8824969; 1.0.weibullCCDF(3.0).shouldApprox == 0.3678794; 1.5.weibullCCDF(3.0).shouldApprox == 0.03421812; // Can also provide scale parameter 0.5.weibullCCDF(2.0, 3.0).shouldApprox == 0.9726045; 1.0.weibullCCDF(2.0, 3.0).shouldApprox == 0.8948393; 1.5.weibullCCDF(2.0, 3.0).shouldApprox == 0.7788008;
Computes the Weibull complementary cumulative distribution function (CCDF).