def update(self, value, timestamp=None):
        if not timestamp:
            timestamp = self.clock()
        self._rescale_if_needed()
        priority = self._weight(timestamp - self.start_time) / random()
        self.count += 1

        if self.count <= self.reservoir_size:
            self.values[priority] = value
        else:
            first = min(self.values)
            if first < priority:
                if priority not in self.values:
                    self.values[priority] = value
                    while first not in self.values:
                        first = min(self.values)
                    del self.values[first]
Adds an old value with a fixed timestamp to the sample.
dataset/ETHPy150Open dreid/yunomi/yunomi/stats/exp_decay_sample.py/ExponentiallyDecayingSample.update