def add()

in sketches/Sampler.py [0:0]


    def add(self, item, weight):
        self.processed += 1
        R = self.priority(item, weight)
        if R < self.threshold:
            self.buffer.add(Sample(R, weight,item))
            self.postAdd(item, weight)