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

Method test_2d_without_missing

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

Source from the content-addressed store, hash-verified

1414 corrcoef(x, rowvar=False))
1415
1416 def test_2d_without_missing(self):
1417 # Test corrcoef on 1 2D variable w/o missing values
1418 x = self._create_data()[0].reshape(3, 4)
1419 assert_almost_equal(np.corrcoef(x), corrcoef(x))
1420 assert_almost_equal(np.corrcoef(x, rowvar=False),
1421 corrcoef(x, rowvar=False))
1422
1423 def test_1d_with_missing(self):
1424 # Test corrcoef 1 1D variable w/missing values

Callers

nothing calls this directly

Calls 4

_create_dataMethod · 0.95
assert_almost_equalFunction · 0.90
corrcoefFunction · 0.90
reshapeMethod · 0.80

Tested by

no test coverage detected