This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / lib / _histograms_impl / _ptp

function

numpy.lib._histograms_impl:_ptp

source: build-install/usr/lib/python3.14/site-packages/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