Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Add a value to the sample.

src/s/c/scales-1.0.6/src/greplin/scales/samplestats_test.py   scales(Download)
    us = UniformSample()
    for _ in range(300):
      us.update(random.gauss(42.0, 13.0))
    self.assertAlmostEqual(us.mean, 43.143067271195235, places=5)
    self.assertAlmostEqual(us.stddev, 13.008553229943168, places=5)
 
    us.clear()
    for _ in range(30000):
      us.update(random.gauss(0.0012, 0.00005))

src/s/c/scales-HEAD/src/greplin/scales/samplestats_test.py   scales(Download)
    us = UniformSample()
    for _ in range(300):
      us.update(random.gauss(42.0, 13.0))
    self.assertAlmostEqual(us.mean, 43.143067271195235, places=5)
    self.assertAlmostEqual(us.stddev, 13.008553229943168, places=5)
 
    us.clear()
    for _ in range(30000):
      us.update(random.gauss(0.0012, 0.00005))