probability method

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

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));