def hockey_stick()

in history/graph.py [0:0]


def hockey_stick(x):
    return np.piecewise(
        x,
        [x < 10, x >= 10],
        [
            lambda x: 0.05 * x,
            lambda x: 0.005 * (x - 10) ** 3 + 0.5,
        ],  # Transition at x = 10
    )