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

Method test_simple

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

Source from the content-addressed store, hash-verified

2251 [[1., -1.], [-1., 1.]])
2252
2253 def test_simple(self):
2254 tgt1 = corrcoef(self.A)
2255 assert_almost_equal(tgt1, self.res1)
2256 assert_(np.all(np.abs(tgt1) <= 1.0))
2257
2258 tgt2 = corrcoef(self.A, self.B)
2259 assert_almost_equal(tgt2, self.res2)
2260 assert_(np.all(np.abs(tgt2) <= 1.0))
2261
2262 def test_ddof(self):
2263 # ddof raises DeprecationWarning

Callers

nothing calls this directly

Calls 4

corrcoefFunction · 0.90
assert_almost_equalFunction · 0.90
assert_Function · 0.90
allMethod · 0.45

Tested by

no test coverage detected