Computes the uniform probability density function (PDF).
value to evaluate PDF
lower bound
upper bound
import mir.math.common: approxEqual; assert(0.5.uniformPDF == 1); assert(0.5.uniformPDF(0.0, 1.5).approxEqual(2.0 / 3)); assert(2.5.uniformPDF(1.0, 3.0).approxEqual(0.5));
Uniform Distribution
See Implementation
Computes the uniform probability density function (PDF).