powered by
Finds a bilinear interpolation bounded by four points
bilinear(x, y, z, newx, newy)
vector of two x values representing x_1 and x_2
x_1
x_2
vector of two y values representing y_1 and y_2
y_1
y_2
2x2 matrix if z values
z
vector of new x values to interpolate
x
vector of new y values to interpolate
y
a vector of interpolated z values at (x, y)
bilinear finds a bilinear interpolation bounded by four corners
bilinear
Other interp: bezier, cubicspline(), linterp(), nn(), polyinterp(), pwiselinterp()
bezier
cubicspline()
linterp()
nn()
polyinterp()
pwiselinterp()
Other algebra: cubicspline(), division, fibonacci(), horner(), isPrime(), linterp(), nthroot(), polyinterp(), pwiselinterp(), quadratic()
division
fibonacci()
horner()
isPrime()
nthroot()
quadratic()
# NOT RUN { x <- c(2, 4) y <- c(4, 7) z <- matrix(c(81, 84, 85, 89), nrow = 2) newx <- c(2.5, 3, 3.5) newy <- c(5, 5.5, 6) bilinear(x, y, z, newx, newy) # }
Run the code above in your browser using DataLab