Computes the uniform cumulative distribution function (CDF).
value to evaluate CDF
lower bound
upper bound
import mir.math.common: approxEqual; assert(0.5.uniformCDF == 0.5); assert(0.5.uniformCDF(0.0, 1.5).approxEqual(1.0 / 3)); assert(2.5.uniformCDF(1.0, 3.0).approxEqual(3.0 / 4));
Uniform Distribution
See Implementation
Computes the uniform cumulative distribution function (CDF).