Exemple #1
0
 def test_get_probability_one_occurrence(self):
     pdf = PoissonTOM(time_span=30)
     aae = self.assertAlmostEqual
     aae(pdf.get_probability_one_occurrence(10), 0)
     aae(pdf.get_probability_one_occurrence(0.1), 0.1493612)
     aae(pdf.get_probability_one_occurrence(0.01), 0.2222455)