Convenient wrapper to signal::interp1()
for linear
interpolation. Assumes that you want interpolated values of
xy_old
at n_xy_new
equidistant data points.
References
Pfister, R., Tonn, S., Schaaf, M., Wirth, R. (2024). mousetRajectory: Mouse tracking analyses for behavioral scientists. The Quantitative Methods for Psychology, 20(3), 217-229. doi:10.20982/tqmp.20.3.p217
Examples
plot(interp2(0:10, (0:10)^2))