You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / lib / _histograms_impl / _ptp

function

numpy.lib._histograms_impl:_ptp

source: /numpy/lib/_histograms_impl.py :22

Signature

def   _ptp ( x )

Summary

Peak-to-peak value of x.

Extended Summary

This implementation avoids the problem of signed integer arrays having a peak-to-peak value that cannot be represented with the array's data type. This function returns an unsigned value for signed integer arrays.

Aliases

  • numpy.lib._histograms_impl._ptp