(self)
| 1334 | assert_almost_equal(corrcoef(x, bias=1), expected) |
| 1335 | |
| 1336 | def test_1d_without_missing(self): |
| 1337 | # Test cov on 1D variable w/o missing values |
| 1338 | x = self.data |
| 1339 | assert_almost_equal(np.corrcoef(x), corrcoef(x)) |
| 1340 | assert_almost_equal(np.corrcoef(x, rowvar=False), |
| 1341 | corrcoef(x, rowvar=False)) |
| 1342 | with suppress_warnings() as sup: |
| 1343 | sup.filter(DeprecationWarning, "bias and ddof have no effect") |
| 1344 | assert_almost_equal(np.corrcoef(x, rowvar=False, bias=True), |
| 1345 | corrcoef(x, rowvar=False, bias=True)) |
| 1346 | |
| 1347 | def test_2d_without_missing(self): |
| 1348 | # Test corrcoef on 1 2D variable w/o missing values |
nothing calls this directly
no test coverage detected