.
import mir.test: should; 0.0.uniformDiscreteInvCDF.should == 0; 0.5.uniformDiscreteInvCDF.should == 0; 1.0.uniformDiscreteInvCDF.should == 1; 0.0.uniformDiscreteInvCDF(1, 3).should == 1; 0.2.uniformDiscreteInvCDF(1, 3).should == 1; (1.0 / 3).uniformDiscreteInvCDF(1, 3).should == 1; 0.5.uniformDiscreteInvCDF(1, 3).should == 1; (2.0 / 3).uniformDiscreteInvCDF(1, 3).should == 2; 1.0.uniformDiscreteInvCDF(1, 3).should == 3;
Computes the discrete uniform inverse cumulative distribution function (InvCDF)