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

Method test_1d_without_missing

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

Source from the content-addressed store, hash-verified

1237 self.data = array(np.random.rand(12))
1238
1239 def test_1d_without_missing(self):
1240 # Test cov on 1D variable w/o missing values
1241 x = self.data
1242 assert_almost_equal(np.cov(x), cov(x))
1243 assert_almost_equal(np.cov(x, rowvar=False), cov(x, rowvar=False))
1244 assert_almost_equal(np.cov(x, rowvar=False, bias=True),
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

Callers

nothing calls this directly

Calls 2

assert_almost_equalFunction · 0.90
covFunction · 0.90

Tested by

no test coverage detected