Example #1
0
 def testmedian(self):
     p = N.WeiBullDistribution(location=2.0, scale=2.0).median()
     self.assertAlmostEqual(p, 1.665109, places=5)
Example #2
0
 def testmode(self):
     p = N.WeiBullDistribution(location=2.0, scale=2.0).mode()
     self.assertAlmostEqual(p, 1.414213, places=5)
Example #3
0
 def testinverseCDF2(self):
     p = N.WeiBullDistribution(location=2.0,
                               scale=2.0).inverseCDF(0.632120)[0]
     self.assertAlmostEqual(p, 2.000000, places=5)
Example #4
0
 def testinverseCDF1(self):
     p = N.WeiBullDistribution(location=1.0,
                               scale=1.0).inverseCDF(0.864664)[0]
     self.assertAlmostEqual(p, 2.000000, places=5)
Example #5
0
 def testPDF1(self):
     p = N.WeiBullDistribution(location=1.0, scale=1.0).PDF(2)
     self.assertAlmostEqual(p, 0.135335, places=5)
Example #6
0
 def testCDF2(self):
     p = N.WeiBullDistribution(location=2.0, scale=2.0).CDF(2)
     self.assertAlmostEqual(p, 0.632120, places=5)
Example #7
0
 def testCDF1(self):
     p = N.WeiBullDistribution(location=1.0, scale=1.0).CDF(2)
     self.assertAlmostEqual(p, 0.864664, places=5)