Computes the uniform log probability density function (LPDF)
value to evaluate LPDF
lower bound
upper bound
import mir.math.common: approxEqual, log; assert(0.5.uniformLPDF == 0); assert(0.5.uniformLPDF(0.0, 1.5).approxEqual(-log(1.5))); assert(1.5.uniformLPDF(1.0, 3.0).approxEqual(-log(2.0)));
Uniform Distribution
See Implementation
Computes the uniform log probability density function (LPDF)