percentile#

named_arrays.pdf.percentile(x, f, q, axis=None)#

Compute the percentile of the given probability mass function, f.

Parameters:
  • x (AbstractScalar) – The edges of each bin of the probability mass function. This should have one more element than f along axis.

  • f (AbstractScalar) – The probability mass function to compute the percentile of. Does not need to be normalized.

  • q (float | AbstractScalar) – The percentile(s) to compute.

  • axis (None | str | Sequence[str]) – The logical axis corresponding to changing x.

Return type:

AbstractScalar