def test_pk2x(self): """1 sample 2-sided should match answers from R""" assert_allclose(pkolmogorov2x(0.7199, 50), (1 - 6.661e-16), rtol=1e-5) assert_allclose(pkolmogorov2x(0.08, 30), 0.01754027, rtol=1e-5) assert_allclose(pkolmogorov2x(0.03, 300), 0.05753413, rtol=1e-5)
def test_pk2x(self): """1 sample 2-sided should match answers from R""" self.assertFloatEqual(pkolmogorov2x(0.7199, 50), (1 - 6.661e-16)) self.assertFloatEqual(pkolmogorov2x(0.08, 30), 0.01754027) self.assertFloatEqual(pkolmogorov2x(0.03, 300), 0.05753413)