$33 GRAYBYTE WORDPRESS FILE MANAGER $22

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.125
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/ma/__pycache__/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/ma/__pycache__//__init__.cpython-311.pyc
�

�|oi|���dZddlmZddlTddlmZddlTddgZeejz
Zeejz
ZddlmZee��Z[d	S)
au
=============
Masked Arrays
=============

Arrays sometimes contain invalid or missing data.  When doing operations
on such arrays, we wish to suppress invalid values, which is the purpose masked
arrays fulfill (an example of typical use is given below).

For example, examine the following array:

>>> x = np.array([2, 1, 3, np.nan, 5, 2, 3, np.nan])

When we try to calculate the mean of the data, the result is undetermined:

>>> np.mean(x)
nan

The mean is calculated using roughly ``np.sum(x)/len(x)``, but since
any number added to ``NaN`` [1]_ produces ``NaN``, this doesn't work.  Enter
masked arrays:

>>> m = np.ma.masked_array(x, np.isnan(x))
>>> m
masked_array(data = [2.0 1.0 3.0 -- 5.0 2.0 3.0 --],
      mask = [False False False  True False False False  True],
      fill_value=1e+20)

Here, we construct a masked array that suppress all ``NaN`` values.  We
may now proceed to calculate the mean of the other values:

>>> np.mean(m)
2.6666666666666665

.. [1] Not-a-Number, a floating point value that is the result of an
       invalid operation.

.. moduleauthor:: Pierre Gerard-Marchant
.. moduleauthor:: Jarrod Millman

�)�core)�*)�extrasrr�)�PytestTesterN)	�__doc__�rr�__all__�numpy._pytesttesterr�__name__�test���H/opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/ma/__init__.py�<module>rs���(�(�R���������������������8�
���4�<����6�>���,�,�,�,�,�,��|�H�����L�Lr


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
11 Feb 2026 9.30 AM
root / root
0755
__init__.cpython-311.pyc
1.68 KB
11 Feb 2026 9.33 AM
root / root
0644
core.cpython-311.pyc
311.185 KB
11 Feb 2026 9.33 AM
root / root
0644
extras.cpython-311.pyc
80.147 KB
11 Feb 2026 9.33 AM
root / root
0644
mrecords.cpython-311.pyc
37.052 KB
20 Jan 2026 1.01 PM
root / root
0644
setup.cpython-311.pyc
0.931 KB
20 Jan 2026 1.01 PM
root / root
0644
testutils.cpython-311.pyc
14.32 KB
20 Jan 2026 1.01 PM
root / root
0644
timer_comparison.cpython-311.pyc
27.361 KB
20 Jan 2026 1.01 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF