示例#1
0
 def testVariationInBothDeme(self):
     counts = [{1: 5, 2: 3, 3: 2}, {1: 5, 2: 3, 3: 2}]
     denom = 100
     self.assertAlmostEqual(st.measure_variation_between(self.dist, counts, denom), 5.8)
示例#2
0
 def testNoVariationInBothDemes2(self):
     counts = [{1: 10}, {2: 10}]
     denom = 100
     self.assertAlmostEqual(st.measure_variation_between(self.dist, counts, denom), 10.0)
示例#3
0
 def testNoVariationInOneDeme(self):
     counts = [{1: 5, 2: 3, 3: 2}, {1: 0, 2: 0, 3: 15}]
     denom = 150
     self.assertAlmostEqual(st.measure_variation_between(self.dist, counts, denom), 7.0)