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 output but the type will be cast if necessary.

fill_value : {var}, optional

Value used to fill in the masked values.

Returns:

ptp : ndarray.

A new array holding the result, unless out was specified, in which case a reference to out is returned.

© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.ma.ptp.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部