numpy / 1.18.5 / reference / generated / numpy.ndarray.ptp.html /

numpy.ndarray.ptp

method

ndarray.ptp(axis=None, out=None, keepdims=False)

Peak to peak (maximum - minimum) value along a given axis.

Refer to numpy.ptp for full documentation.

See also

numpy.ptp

equivalent function

© 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.18/reference/generated/numpy.ndarray.ptp.html