def last_n_average_threshold(threshold, n, utilization):
    """ The averaging CPU utilization threshold algorithm.

    :param threshold: The threshold on the CPU utilization.
     :type threshold: float,>=0

    :param n: The number of last CPU utilization values to average.
     :type n: int,>0

    :param utilization: The history of the host's CPU utilization.
     :type utilization: list(float)

    :return: The decision of the algorithm.
     :rtype: bool
    """
    if utilization:
        utilization = utilization[-n:]
        return sum(utilization) / len(utilization) > threshold
    return False