numpy.ma.ptp()

numpy.ma.ptp

numpy.ma.ptp(obj, axis=None, out=None, fill_value=None) [source]

Return (maximum - minimum) along the the given dimension (i.e. peak-to-peak value).

Parameters:

axis : {None, int}, optional

Axis along which to find the peaks. If None (default) the flattened array is used.

out : {None, array_like}, optional

Alternative output array in which to place the result. It must have the same shape and buffer length as the expected o