MCPcopy Index your code
hub / github.com/numpy/numpy / test_1d_without_missing

Method test_1d_without_missing

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

Source from the content-addressed store, hash-verified

1407 return data, data2
1408
1409 def test_1d_without_missing(self):
1410 # Test cov on 1D variable w/o missing values
1411 x = self._create_data()[0]
1412 assert_almost_equal(np.corrcoef(x), corrcoef(x))
1413 assert_almost_equal(np.corrcoef(x, rowvar=False),
1414 corrcoef(x, rowvar=False))
1415
1416 def test_2d_without_missing(self):
1417 # Test corrcoef on 1 2D variable w/o missing values

Callers

nothing calls this directly

Calls 3

_create_dataMethod · 0.95
assert_almost_equalFunction · 0.90
corrcoefFunction · 0.90

Tested by

no test coverage detected