コード例 #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)