Cosine interpolation

def interpolate_cosine_single(start, end, coefficient):
    """ Cosine interpolation """
    cos_out = (np.cos(np.pi*coefficient) + 1) / 2.0
    return end + (start - end) * cos_out