MCPcopy
hub / github.com/numpy/numpy / test_2d_without_missing

Method test_2d_without_missing

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

Source from the content-addressed store, hash-verified

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
1350 x = self._create_data().reshape(3, 4)
1351 assert_almost_equal(np.cov(x), cov(x))
1352 assert_almost_equal(np.cov(x, rowvar=False), cov(x, rowvar=False))
1353 assert_almost_equal(np.cov(x, rowvar=False, bias=True),
1354 cov(x, rowvar=False, bias=True))
1355
1356 def test_1d_with_missing(self):
1357 # Test cov 1 1D variable w/missing values

Callers

nothing calls this directly

Calls 4

_create_dataMethod · 0.95
assert_almost_equalFunction · 0.90
covFunction · 0.90
reshapeMethod · 0.80

Tested by

no test coverage detected