def getProbability(value, distribution, values):
    total = 0.0
    for prob, val in zip(distribution, values):
        if val == value:
            total += prob
    return total
Wrap an existing generator in a (jittery) rate limit.
dataset/ETHPy150Open rlpy/rlpy/rlpy/Domains/PacmanPackage/util.py/getProbability--crossover with--dataset/ETHPy150Open remakeelectric/mqtt-malaria/beem/msgs.py/JitteryRateLimited