def get_next_power_2(n):

    power = 1
    while (power < n):
        power *= 2
    if power > 1:
        return power / 2
    else:
        return 1
Log probability of x given p
dataset/ETHPy150Open Agerrr/Automated_Music_Transcription/highest_peak_method.py/get_next_power_2--crossover with--dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/internals/distributions.py/Bernoulli.log_probability