| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/../generated/numpy.ma.MaskedArray.mean.html | [Back] [Original] |
method
Returns the average of the array elements along given axis.
Masked entries are ignored, and result elements which are not finite will be masked.
Refer to numpy.mean for full documentation.
See also
numpy.ndarray.meancorresponding function for ndarrays
numpy.meanEquivalent function
numpy.ma.averageWeighted average.
Examples
>>> import numpy as np
>>> a = np.ma.array([1,2,3], mask=[False, False, True])
>>> a
masked_array(data=[1, 2, --],
mask=[False, False, True],
fill_value=999999)
>>> a.mean()
1.5
| Web Proxy Viewer | New URL | Original Page |