java.lang.Object
net.finmath.interpolation.BiLinearInterpolation
- All Implemented Interfaces:
BiFunction<Double,Double,Double>
Simple bi-linear interpolation of data points \( z_{i,j} \) over a Cartesian grid \( (x_{i},y_{j}) \).
The interpolation function is
\[
z = f(x,y) =
\alpha_{x} \alpha_{y} z_{k_{x},k_{y}} +
\alpha_{x} (1-\alpha_{y}) z_{k_{x},k_{y}+1} +
(1-\alpha_{x}) \alpha_{y} z_{k_{x}+1,k_{y}} +
(1-\alpha_{x}) (1-\alpha_{y}) z_{k_{x}+1,k_{y}+1}
\]
where \( x_{k_{x}} \leq x \leq x_{k_{x}+1} \) and \( y_{k_{y}} \leq y \leq y_{k_{x}+1} \) and \( \alpha_{x} = (x_{k_{x}+1}-x)/(x_{k_{x}+1}-x_{k_{x}}) \) and \( \alpha_{y} = (x_{k_{y}+1}-x)/(x_{k_{y}+1}-x_{k_{y}}) \).
- Version:
- 1.0
- Author:
- Christian Fries
-
Constructor Details
-
BiLinearInterpolation
public BiLinearInterpolation(double[] x, double[] y, double[][] z)
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<Double,Double,Double>
-