def testGaussian(self):
    random.seed(42)

    sample = ExponentiallyDecayingReservoir()
    for _ in range(300):
      sample.update(random.gauss(42.0, 13.0))
    self.assertAlmostEqual(sample.mean, 41.974069434931714, places=5)
    self.assertAlmostEqual(sample.stddev, 12.982363860393766, places=5)
Test with gaussian random numbers.
dataset/ETHPy150Open Cue/scales/src/greplin/scales/samplestats_test.py/ExponentiallyDecayingReservoirTest.testGaussian