Interpolate a surface over a grid
See also
Other smoothing:
tda_integrate(),
tda_isotonic(),
tda_mat(),
tda_sma(),
tda_smd(),
tda_spl()
Examples
# a plane z = x + 2y, evaluated back on its own grid
g <- expand.grid(x = 1:5, y = 1:5)
g$z <- g$x + 2 * g$y
head(tda_interp(g$x, g$y, g$z, rx = 1:5, ry = 1:5)$table)
#> x y z
#> 1 1 1 3
#> 2 1 2 5
#> 3 1 3 7
#> 4 1 4 9
#> 5 1 5 11
#> 6 2 1 4