import mir.math.common: approxEqual, log; assert(0.5.exponentialLPDF(2.0).approxEqual(log(exponentialPDF(0.5, 2.0)))); assert(0.75.exponentialLPDF(2.0).approxEqual(log(exponentialPDF(0.75, 2.0)))); assert(0.25.exponentialLPDF(0.5).approxEqual(log(exponentialPDF(0.25, 0.5))));
Computes the exponential log probability density function (LPDF).