MCPcopy Create free account
hub / github.com/numpy/numpy / test_2d_without_missing

Method test_2d_without_missing

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

Source from the content-addressed store, hash-verified

1345 corrcoef(x, rowvar=False, bias=True))
1346
1347 def test_2d_without_missing(self):
1348 # Test corrcoef on 1 2D variable w/o missing values
1349 x = self.data.reshape(3, 4)
1350 assert_almost_equal(np.corrcoef(x), corrcoef(x))
1351 assert_almost_equal(np.corrcoef(x, rowvar=False),
1352 corrcoef(x, rowvar=False))
1353 with suppress_warnings() as sup:
1354 sup.filter(DeprecationWarning, "bias and ddof have no effect")
1355 assert_almost_equal(np.corrcoef(x, rowvar=False, bias=True),
1356 corrcoef(x, rowvar=False, bias=True))
1357
1358 def test_1d_with_missing(self):
1359 # Test corrcoef 1 1D variable w/missing values

Callers

nothing calls this directly

Calls 5

assert_almost_equalFunction · 0.90
corrcoefFunction · 0.90
suppress_warningsClass · 0.90
reshapeMethod · 0.80
filterMethod · 0.80

Tested by

no test coverage detected