cumulativeProbability method

  1. @override
double cumulativeProbability(
  1. double x
)
override

The Cumulative Distribution Function (CDF).

Returns the cumulative probability at x, or the probability of a random variable to be less than or equal to x.

Implementation

@override
double cumulativeProbability(double x) {
  final z = (x - mu) / (sqrt2 * sigma);
  return 0.5 * (1 + erf(z));
}