Commits

Sean Cassidy  committed 6f71176

Update example again

  • Participants
  • Parent commits 1b7e8d6

Comments (0)

Files changed (1)

 
     test = LiveStats([0.25, 0.5, 0.75])
 
-    data = (random.random() for x in iter(int, 1))
+    data = iter(random.random, 1)
 
     for x in xrange(3):
         for y in xrange(100):
-            test.add(data.next())
+            test.add(data.next()*100)
 
         print "Average {}, stddev {}, percentiles {}".format(test.mean(), 
                 sqrt(test.variance()), test.percentiles())