import mir.test: shouldApprox; 0.uniformDiscreteCCDF.shouldApprox == 0.5; 1.uniformDiscreteCCDF.shouldApprox == 0.0; 1.uniformDiscreteCCDF(1, 3).shouldApprox == 2.0 / 3; 2.uniformDiscreteCCDF(1, 3).shouldApprox == 1.0 / 3; 3.uniformDiscreteCCDF(1, 3).shouldApprox == 0.0;
Computes the discrete uniform complementary cumulative distribution function (CCDF).