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

Method test_1d_without_missing

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

Source from the content-addressed store, hash-verified

1334 assert_almost_equal(corrcoef(x, bias=1), expected)
1335
1336 def test_1d_without_missing(self):
1337 # Test cov on 1D variable w/o missing values
1338 x = self.data
1339 assert_almost_equal(np.corrcoef(x), corrcoef(x))
1340 assert_almost_equal(np.corrcoef(x, rowvar=False),
1341 corrcoef(x, rowvar=False))
1342 with suppress_warnings() as sup:
1343 sup.filter(DeprecationWarning, "bias and ddof have no effect")
1344 assert_almost_equal(np.corrcoef(x, rowvar=False, bias=True),
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

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected