cdf method

double cdf(
  1. double x
)

Cumulative distribution function: probability of a value <= x.

Implementation

double cdf(double x) => 0.5 * erfc(-(x - mean) / (std * math.sqrt2));