def update(self, value):
    super(UniformSample, self).update(value)

    self.count += 1
    c = self.count
    if c < len(self.sample):
      self.sample[c-1] = value
    else:
      r = random.randint(0, c)
      if r < len(self.sample):
        self.sample[r] = value
Add a value to the sample.
dataset/ETHPy150Open Cue/scales/src/greplin/scales/samplestats.py/UniformSample.update