@staticmethod
    def calculate_rescale_threshold(alpha):
        # determine rescale-threshold such that we will not overflow exp() in
        # weight function, and subsequently not overflow into inf on dividing
        # by random.random()
        min_rand = 1.0 / (2 ** 32)  # minimum non-zero value from random()
        safety = 2.0                # safety pad for numerical inaccuracy
        max_value = sys.float_info.max * min_rand / safety
        return int(alpha / math.log(max_value))
dataset/ETHPy150Open cyberdelia/metrology/metrology/stats/sample.py/ExponentiallyDecayingSample.calculate_rescale_threshold/swapped operands of `/`