Пример #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)