logPdf method

double logPdf(
  1. double x
)

Logarithm of the probability density function at x.

Implementation

double logPdf(double x) {
  var z = (x - mean) / std;
  return -0.5 * z * z - math.log(_sqrt2Pi * std);
}