bilinear_interp | R Documentation |
bilinear_interp
calculates three coefficients, used to calculate height via blinear interpolation from height and location of three neighbors
bilinear_interp(xyz1, xyz2, xyz3, xypred)
xyz1 |
2D location and height of first neighbor |
xyz2 |
2D location and height of second neighbor |
xyz3 |
2D location and height of third neighbor |
xypred |
2D location of location to interpolate |
Tagged list of useful output
height at location xypred
Coefficients for interpolation
## Not run:
bilinear_interp( xyz1=c(0,0,0), xyz2=c(1,-1,1), xyz3=c(0,1,2), xypred=c(0.1,0.7))
# Should equal 1.7
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.