Esempio n. 1
0
 def test_ps2x(self):
     """2 sample 2-sided smirnov should match answers from R"""
     assert_allclose(psmirnov2x(0.48, 20, 50), 0.9982277)
     assert_allclose(psmirnov2x(0.28, 20, 50), 0.8161612)
     assert_allclose(psmirnov2x(0.28, 50, 20), 0.8161612)
Esempio n. 2
0
 def test_ps2x(self):
     """2 sample 2-sided smirnov should match answers from R"""
     self.assertFloatEqual(psmirnov2x(0.48, 20, 50), 0.9982277)
     self.assertFloatEqual(psmirnov2x(0.28, 20, 50), 0.8161612)
     self.assertFloatEqual(psmirnov2x(0.28, 50, 20), 0.8161612)