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

Method test_1D_rowvar

numpy/lib/tests/test_function_base.py:2362–2365  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2360 [-np.inf, np.inf]]))
2361
2362 def test_1D_rowvar(self):
2363 assert_allclose(cov(self.x3), cov(self.x3, rowvar=False))
2364 y = np.array([0.0780, 0.3107, 0.2111, 0.0334, 0.8501])
2365 assert_allclose(cov(self.x3, y), cov(self.x3, y, rowvar=False))
2366
2367 def test_1D_variance(self):
2368 assert_allclose(cov(self.x3, ddof=1), np.var(self.x3, ddof=1))

Callers

nothing calls this directly

Calls 2

assert_allcloseFunction · 0.90
covFunction · 0.90

Tested by

no test coverage detected