Computes the normal log probability density function (LPDF)
value to evaluate LPDF
mean
standard deviation
import mir.math.common: approxEqual, log; assert(0.5.normalLPDF.approxEqual(log(normalPDF(0.5)))); assert(0.5.normalLPDF(0, 1.5).approxEqual(log(normalPDF(0.5, 0, 1.5)))); assert(1.5.normalLPDF(1, 3).approxEqual(log(normalPDF(1.5, 1, 3))));
Normal Distribution
See Implementation
Computes the normal log probability density function (LPDF)