Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib64 /
python2.7 /
site-packages /
numpy /
ma /
Delete
Unzip
Name
Size
Permission
Date
Action
tests
[ DIR ]
drwxr-xr-x
2021-09-16 10:54
__init__.py
1.46
KB
-rw-r--r--
2013-04-07 01:04
__init__.pyc
1.69
KB
-rw-r--r--
2018-04-10 19:40
__init__.pyo
1.69
KB
-rw-r--r--
2018-04-10 19:40
bench.py
6.41
KB
-rw-r--r--
2013-04-07 01:04
bench.pyc
4.48
KB
-rw-r--r--
2018-04-10 19:40
bench.pyo
4.48
KB
-rw-r--r--
2018-04-10 19:40
core.py
221.92
KB
-rw-r--r--
2013-04-07 01:04
core.pyc
204.75
KB
-rw-r--r--
2018-04-10 19:40
core.pyo
204.75
KB
-rw-r--r--
2018-04-10 19:40
extras.py
54.2
KB
-rw-r--r--
2013-04-07 01:04
extras.pyc
51.68
KB
-rw-r--r--
2018-04-10 19:40
extras.pyo
51.68
KB
-rw-r--r--
2018-04-10 19:40
mrecords.py
27.18
KB
-rw-r--r--
2013-04-07 01:04
mrecords.pyc
22.91
KB
-rw-r--r--
2018-04-10 19:40
mrecords.pyo
22.91
KB
-rw-r--r--
2018-04-10 19:40
setup.py
585
B
-rw-r--r--
2013-04-07 01:04
setup.pyc
936
B
-rw-r--r--
2018-04-10 19:40
setup.pyo
936
B
-rw-r--r--
2018-04-10 19:40
setupscons.py
585
B
-rw-r--r--
2013-04-07 01:04
setupscons.pyc
946
B
-rw-r--r--
2018-04-10 19:40
setupscons.pyo
946
B
-rw-r--r--
2018-04-10 19:40
testutils.py
9.81
KB
-rw-r--r--
2013-04-07 01:04
testutils.pyc
9.77
KB
-rw-r--r--
2018-04-10 19:40
testutils.pyo
9.77
KB
-rw-r--r--
2018-04-10 19:40
timer_comparison.py
16.85
KB
-rw-r--r--
2013-04-07 01:04
timer_comparison.pyc
14.35
KB
-rw-r--r--
2018-04-10 19:40
timer_comparison.pyo
12.16
KB
-rw-r--r--
2018-04-10 19:40
version.py
299
B
-rw-r--r--
2013-04-07 01:04
version.pyc
509
B
-rw-r--r--
2018-04-10 19:40
version.pyo
509
B
-rw-r--r--
2018-04-10 19:40
Save
Rename
""" ============= 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. """ __author__ = "Pierre GF Gerard-Marchant ($Author: jarrod.millman $)" __version__ = '1.0' __revision__ = "$Revision: 3473 $" __date__ = '$Date: 2007-10-29 17:18:13 +0200 (Mon, 29 Oct 2007) $' import core from core import * import extras from extras import * __all__ = ['core', 'extras'] __all__ += core.__all__ __all__ += extras.__all__ from numpy.testing import Tester test = Tester().test bench = Tester().bench