Back to index

python-biopython  1.60
Public Member Functions
test_Chi2.ModTest Class Reference

List of all members.

Public Member Functions

def testCdfChi2
def testLnGamma
def testIncompleteGamma

Detailed Description

Definition at line 12 of file test_Chi2.py.


Member Function Documentation

Definition at line 14 of file test_Chi2.py.

00014 
00015     def testCdfChi2(self):
00016         self.assertRaises(ValueError, chi2.cdf_chi2, df = 0, stat = 3.84)
00017         self.assertRaises(ValueError, chi2.cdf_chi2, df = 1, stat = -3.84)
00018         self.assertRaises(TypeError, chi2.cdf_chi2, df = "d", stat ="stat")
00019         self.assertAlmostEqual(chi2.cdf_chi2(2, 3.84), 0.1466070, places=5)

Definition at line 25 of file test_Chi2.py.

00025 
00026     def testIncompleteGamma(self):
00027         self.assertRaises(ValueError, chi2._incomplete_gamma, x = 0.5, 
00028                           alpha = -1)
00029         self.assertAlmostEqual(chi2._incomplete_gamma(0.5, 0.5), 0.6826895,
00030                                places=5)

Definition at line 20 of file test_Chi2.py.

00020 
00021     def testLnGamma(self):
00022         self.assertRaises(ValueError, chi2._ln_gamma_function, -1)
00023         self.assertAlmostEqual(chi2._ln_gamma_function(10), 12.80183,
00024                                places=5)


The documentation for this class was generated from the following file: