create_approximation.Rd
Creates linear interpolation
create_approximation(x, y, start = 0)
time points
values to interpolate
rescales the x to x-start (useful to chain interventions properly)
An interpolation function, like the one created by approxfun (stats package)