pdf method

double pdf(
  1. double x
)

Probability density function at x.

Implementation

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