scipy.stats.sampling.FastGeneratorInversion.
ppf#
- FastGeneratorInversion.ppf(q)[source]#
Very fast PPF (inverse CDF) of the distribution which is a very close approximation of the exact PPF values.
- Parameters:
- qarray_like
Array with probabilities.
- Returns:
- ppfarray_like
Quantiles corresponding to the values in q.
Notes
The evaluation of the PPF is very fast but it may have a large relative error in the far tails. The numerical precision of the PPF is controlled by the q-error, that is,
max |q - CDF(PPF(q))|where the max is taken over points in the interval [0,1], seeevaluate_error.Note that this PPF is designed to generate random samples.