argpercentile#

named_arrays.pdf.argpercentile(a, q, axis=None)#

Find the fractional, 1D index of an all-positive array, a, corresponding to the percentile q.

This function finds the fractional index using linear interpolation.

Parameters:
  • a (AbstractScalar) – The all-positive array on which to compute the percentile. If a contains negatives, the result is undefined.

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

  • axis (None | str | Sequence[str]) – The axis of a along which to compute the percentile. If None (the default), a must have only one logical dimension.

Return type:

dict[str, AbstractScalar]