bilinear {cmna} | R Documentation |
Bilinear interpolation
Description
Finds a bilinear interpolation bounded by four points
Usage
bilinear(x, y, z, newx, newy)
Arguments
x |
vector of two x values representing |
y |
vector of two y values representing |
z |
2x2 matrix if |
newx |
vector of new |
newy |
vector of new |
Details
bilinear
finds a bilinear interpolation bounded by four corners
Value
a vector of interpolated z values at (x
, y
)
See Also
Other interp:
bezier
,
cubicspline()
,
linterp()
,
nn()
,
polyinterp()
,
pwiselinterp()
Other algebra:
cubicspline()
,
division
,
fibonacci()
,
horner()
,
isPrime()
,
linterp()
,
nthroot()
,
polyinterp()
,
pwiselinterp()
,
quadratic()
Examples
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)
[Package cmna version 1.0.5 Index]