@contract
def last_n_average_threshold_factory(time_step, migration_time, params):
    return lambda utilization, state=None: (
        last_n_average_threshold(params['threshold'],
                                 params['n'],
                                 utilization),
        {})
Creates the averaging CPU utilization threshold algorithm.
dataset/ETHPy150Open beloglazov/openstack-neat/neat/locals/overload/trivial.py/last_n_average_threshold_factory