bilinear_interp: Calculate weights for bilinear interpolation

View source: R/deprecated.R

bilinear_interpR Documentation

Calculate weights for bilinear interpolation

Description

bilinear_interp calculates three coefficients, used to calculate height via blinear interpolation from height and location of three neighbors

Usage

bilinear_interp(xyz1, xyz2, xyz3, xypred)

Arguments

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

Value

Tagged list of useful output

zpred

height at location xypred

phi

Coefficients for interpolation

Examples


  ## 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)

James-Thorson/FishStatsUtils documentation built on Feb. 6, 2024, 4:26 a.m.