Class BilinearInterpolation
- java.lang.Object
-
- dev.nm.analysis.curvefit.interpolation.bivariate.BilinearInterpolation
-
- All Implemented Interfaces:
BivariateGridInterpolation
public class BilinearInterpolation extends Object implements BivariateGridInterpolation
Bilinear interpolation is the 2-dimensional equivalent of linear interpolation. The algorithm first does linear interpolation in the x-direction at the desired x position on the two enclosing horizontal grid lines (say, y1 and y2), then does another linear interpolation using these two interpolated points to interpolate the value at (x, y).
-
-
Constructor Summary
Constructors Constructor Description BilinearInterpolation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RealScalarFunction
interpolate(BivariateGrid grid)
Constructs a real valued function from a grid of observations.
-
-
-
Method Detail
-
interpolate
public RealScalarFunction interpolate(BivariateGrid grid)
Description copied from interface:BivariateGridInterpolation
Constructs a real valued function from a grid of observations.- Specified by:
interpolate
in interfaceBivariateGridInterpolation
- Parameters:
grid
- the grid of observations- Returns:
- the interpolated function
-
-