@staticmethod
    def calculate_parameters(n, p):
        m = int(math.ceil(n * math.log(p) * -2.0813689810056073))
        k = int(round(0.6931471805599453 * m / n))
        return m, k
dataset/ETHPy150Open douban/dpark/dpark/bitindex.py/Bloomfilter.calculate_parameters/original