from typing import List


def moving_average(values:List[float])->float:
    """ A very simple function to average a time-series of values favouring later values """
    avg = values[0]
    for val in values:
        avg = avg*0.4 + val*0.6
    return avg