probability method
The Probability Density/Mass Function (PDF/PMF).
Returns the probability of the distribution at x
.
Implementation
@override
double probability(double x) => x < 0
? 0
: shape / scale * pow(x / scale, shape - 1) * exp(-pow(x / scale, shape));