cumulativeProbability method
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) => x <= a
? 0
: x <= b
? (x - a) / (b - a)
: 1;