Linearly interpolate between two float values.

def filter_value(old: float, new: float, factor: float) -> float:
    """ Linearly interpolate between two float values. """
    r_factor: float = 1 - factor
    return old * r_factor + new * factor