@contract
def loess_robust_factory(time_step, migration_time, params):
    """ Creates the robust Loess based overload detection algorithm.

    :param time_step: The length of the simulation time step in seconds.
     :type time_step: int,>=0

    :param migration_time: The VM migration time in time seconds.
     :type migration_time: float,>=0

    :param params: A dictionary containing the algorithm's parameters.
     :type params: dict(str: *)

    :return: A function implementing the OTF algorithm.
     :rtype: function
    """
    migration_time_normalized = time_step / float(migration_time)
    return lambda utilization, state=None: \
        (loess_robust(params['threshold'],
                      params['param'],
                      params['length'],
                      migration_time_normalized,
                      utilization),
         {})
dataset/ETHPy150Open beloglazov/openstack-neat/neat/locals/overload/statistics.py/loess_robust_factory/swapped operands of `/`