예제 #1
0
 def test200_190_OneTail(self):
     t = 2.9980
     n = 7
     constant = _calculateConstant(n)
     integration = _integrate(t, n, _f)
     result = constant * integration + 0.5
     self.assertAlmostEqual(result, 0.990, 3)
예제 #2
0
 def test200_200_TwoTails(self):
     t = 2.9980
     n = 7
     constant = _calculateConstant(n)
     integration = _integrate(t, n, _f)
     result = constant * integration * 2
     self.assertAlmostEqual(result, 0.980, 3)
예제 #3
0
 def test200_150_OneTail(self):
     t = 1.3104
     n = 30
     constant = _calculateConstant(n)
     integration = _integrate(t, n, _f)
     result = constant * integration + 0.5
     self.assertAlmostEqual(result, 0.900, 3)
예제 #4
0
 def test200_160_TwoTails(self):
     t = 1.3104
     n = 30
     constant = _calculateConstant(n)
     integration = _integrate(t, n, _f)
     result = constant * integration * 2
     self.assertAlmostEqual(result, 0.800, 3)
예제 #5
0
 def test200_130_OneTail(self):
     t = 1.0997
     n = 9
     constant = _calculateConstant(n)
     integration = _integrate(t, n, _f)
     result = constant * integration + 0.5
     self.assertAlmostEqual(result, 0.850, 3)
예제 #6
0
 def test200_140_TwoTails(self):
     t = 1.0997
     n = 9
     constant = _calculateConstant(n)
     integration = _integrate(t, n, _f)
     result = constant * integration * 2
     self.assertAlmostEqual(result, 0.700, 3)
예제 #7
0
 def test200_120_TwoTails(self):
     t = 0.5329
     n = 20
     constant = _calculateConstant(n)
     integration = _integrate(t, n, _f)
     result = constant * integration * 2
     self.assertAlmostEqual(result, 0.400, 3)
예제 #8
0
 def test200_110_OneTail(self):
     t = 0.5329
     n = 20
     constant = _calculateConstant(n)
     integration = _integrate(t, n, _f)
     result = constant * integration + 0.5
     self.assertAlmostEqual(result, 0.700, 3)
예제 #9
0
 def test200_090_OneTail(self):
     t = 0.2602
     n = 10
     constant = _calculateConstant(n)
     integration = _integrate(t, n, _f)
     result = constant * integration + 0.5
     self.assertAlmostEqual(result, 0.600, 3)
예제 #10
0
 def test200_070_OneTail(self):
     t = 2.8453
     n = 20
     constant = _calculateConstant(n)
     integration = _integrate(t, n, _f)
     result = constant * integration + 0.5
     self.assertAlmostEqual(result, 0.995, 3)
예제 #11
0
 def test200_060_TwoTails(self):
     t = 5.8409
     n = 3
     constant = _calculateConstant(n)
     integration = _integrate(t, n, _f)
     result = constant * integration * 2
     self.assertAlmostEqual(result, 0.990, 3)