(x, y)
| 425 | |
| 426 | @staticmethod |
| 427 | def assert_almost_equal(x, y): |
| 428 | ax = np.array(x) |
| 429 | ay = np.array(y) |
| 430 | assert np.all(ax > 0) and np.all(ax < 1) |
| 431 | assert np.all(ay > 0) and np.all(ay < 1) |
| 432 | lx = -np.log(1/ax-1) |
| 433 | ly = -np.log(1/ay-1) |
| 434 | assert_almost_equal(lx, ly) |
| 435 | |
| 436 | |
| 437 | class TestLogitLocator: |
no outgoing calls
no test coverage detected