MCPcopy
hub / github.com/numpy/numpy / test_2d_with_missing

Method test_2d_with_missing

numpy/ma/tests/test_extras.py:1441–1449  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1439 corrcoef(x, x[::-1], rowvar=False))
1440
1441 def test_2d_with_missing(self):
1442 # Test corrcoef on 2D variable w/ missing value
1443 x = self._create_data()[0]
1444 x[-1] = masked
1445 x = x.reshape(3, 4)
1446
1447 test = corrcoef(x)
1448 control = np.corrcoef(x)
1449 assert_almost_equal(test[:-1, :-1], control[:-1, :-1])
1450
1451
1452class TestPolynomial:

Callers

nothing calls this directly

Calls 4

_create_dataMethod · 0.95
corrcoefFunction · 0.90
assert_almost_equalFunction · 0.90
reshapeMethod · 0.80

Tested by

no test coverage detected