bilinearInterpolation
Functions
-
double bilinearInterpolation(double x1, double x2, double y1, double y2, double z11, double z12, double z21, double z22, double x, double y)
This function uses bilinear interpolation to solve for the value of an unknown function of two variables f(x,y) at the point (x,y).
- Parameters:
x1 – Data point x1
x2 – Data point x2
y1 – Data point y1
y2 – Data point y2
z11 – Function value at point (x1, y1)
z12 – Function value at point (x1, y2)
z21 – Function value at point (x2, y1)
z22 – Function value at point (x2, y2)
x – Function x coordinate for interpolation
y – Function y coordinate for interpolation
- Returns:
double