示例#1
0
 def testOtherPrecisionCV(self):
     X = [1, 2, 2, 4, 3]
     self.assertEqual(stats.coeffVar(X, 5), 0.42492)
示例#2
0
 def testDefaultPrecisionCV(self):
     X = [1, 2, 2, 4, 3]
     self.assertEqual(stats.coeffVar(X), 0.425)
示例#3
0
 def testSingleCoeffVar(self):
     # passing only one data point must return zero (no deviation!)
     self.assertEqual(stats.coeffVar([5]), 0.0)
示例#4
0
 def testOtherPrecisionCV(self):
     X = [1, 2, 2, 4, 3]
     self.assertEqual(stats.coeffVar(X,5), 0.42492)
示例#5
0
 def testDefaultPrecisionCV(self):
     X = [1, 2, 2, 4, 3]
     self.assertEqual(stats.coeffVar(X), 0.425)
示例#6
0
 def testSingleCoeffVar(self):
         # passing only one data point must return zero (no deviation!)
     self.assertEqual(stats.coeffVar([5]), 0.0)