numpy.ptp()
numpy.ptp
-
numpy.ptp(a, axis=None, out=None)
[source] -
Range of values (maximum - minimum) along an axis.
The name of the function comes from the acronym for ‘peak to peak’.
Parameters: a : array_like
Input values.
axis : int, optional
Axis along which to find the peaks. By default, flatten the array.
out : array_like
Alternative output array in which to place the result. It must have the same s