MCPcopy Index your code
hub / github.com/numpy/numpy / test_1d_without_missing

Method test_1d_without_missing

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

Source from the content-addressed store, hash-verified

1338 )
1339
1340 def test_1d_without_missing(self):
1341 # Test cov on 1D variable w/o missing values
1342 x = self._create_data()
1343 assert_almost_equal(np.cov(x), cov(x))
1344 assert_almost_equal(np.cov(x, rowvar=False), cov(x, rowvar=False))
1345 assert_almost_equal(np.cov(x, rowvar=False, bias=True),
1346 cov(x, rowvar=False, bias=True))
1347
1348 def test_2d_without_missing(self):
1349 # Test cov on 1 2D variable w/o missing values

Callers

nothing calls this directly

Calls 3

_create_dataMethod · 0.95
assert_almost_equalFunction · 0.90
covFunction · 0.90

Tested by

no test coverage detected