MaskedArray.max()

numpy.ma.MaskedArray.max

MaskedArray.max(axis=None, out=None, fill_value=None) [source]

Return the maximum along a given axis.

Parameters:

axis : {None, int}, optional

Axis along which to operate. By default, axis is None and the flattened input is used.

out : array_like, optional

Alternative output array in which to place the result. Must be of the same shape and buffer length as the expected output.

fill_value : {var}, optional

Value used to fill in the masked values. If None, use the output of maximum_fill_value().

Returns:

amax : array_like

New array holding the result. If out was specified, out is returned.

See also

maximum_fill_value
Returns the maximum filling value for a given datatype.

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部