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

Method test_2d_without_missing

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

Source from the content-addressed store, hash-verified

1245 cov(x, rowvar=False, bias=True))
1246
1247 def test_2d_without_missing(self):
1248 # Test cov on 1 2D variable w/o missing values
1249 x = self.data.reshape(3, 4)
1250 assert_almost_equal(np.cov(x), cov(x))
1251 assert_almost_equal(np.cov(x, rowvar=False), cov(x, rowvar=False))
1252 assert_almost_equal(np.cov(x, rowvar=False, bias=True),
1253 cov(x, rowvar=False, bias=True))
1254
1255 def test_1d_with_missing(self):
1256 # Test cov 1 1D variable w/missing values

Callers

nothing calls this directly

Calls 3

assert_almost_equalFunction · 0.90
covFunction · 0.90
reshapeMethod · 0.80

Tested by

no test coverage detected