def estimate(self, item):
        """ Estimate the frequency of one value """

        item = str(item)
        h = hashes(item, self.d)
        h2 = []
        for hi in h:
            v = 1 - hi if hi % 2 == 0 else hi + 1
            h2 += [v]

        g = self.pub.group.generator()
        o = self.pub.group.order()

        elist = []
        for i, [hi, hpi] in enumerate(zip(h, h2)):
            v1 = self.store[i][hi % self.w] 
            v2 = self.store[i][hpi % self.w]
            elist += [v1, -v2]
        
        estimates = Ct.sum(elist)
        return estimates, self.d
dataset/ETHPy150Open gdanezis/petlib/examples/tormedian.py/CountSketchCt.estimate/swapped operands of `-`