smile.interpolation
Class BilinearInterpolation
- java.lang.Object
-
- smile.interpolation.BilinearInterpolation
-
- All Implemented Interfaces:
- Interpolation2D
public class BilinearInterpolation extends java.lang.Object implements Interpolation2D
Bilinear interpolation in a two-dimensional regular grid. Bilinear interpolation is an extension of linear interpolation for interpolating functions of two variables on a regular grid. The key idea is to perform linear interpolation first in one direction, and then again in the other direction.
-
-
Constructor Summary
Constructors Constructor and Description BilinearInterpolation(double[] x1, double[] x2, double[][] y)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleinterpolate(double x1, double x2)Interpolate the data at a given 2-dimensional point.
-
-
-
Constructor Detail
-
BilinearInterpolation
public BilinearInterpolation(double[] x1, double[] x2, double[][] y)Constructor.
-
-
Method Detail
-
interpolate
public double interpolate(double x1, double x2)Description copied from interface:Interpolation2DInterpolate the data at a given 2-dimensional point.- Specified by:
interpolatein interfaceInterpolation2D
-
-
DataMelt 3.0 © DataMelt by jWork.ORG