/src/main/java/net/finmath/interpolation/BiLinearInterpolation.java
final int interpolatedValue = alphaX * alphaY * z[lowerIndexX][lowerIndexY] + alphaX * ( 1.0-alphaY) * z[lowerIndexX][upperIndexY] +( 1-alphaX) * alphaY * z[upperIndexX][lowerIndexY] +
final double interpolatedValue = alphaX * alphaY * z[lowerIndexX][lowerIndexY] + alphaX * ( 1.0-alphaY ) * z[lowerIndexX][upperIndexY] + ( 1-alphaX ) * alphaY * z[upperIndexX][lowerIndexY] +
} if(upperIndexY == lowerIndexY) { upperIndexY++; } final double alphaX = (this.x[upperIndexX]-x)/(this.x[upperIndexX]-this.x[lowerIndexX]); final double alphaY = (this.y[upperIndexY]-y)/(this.y[upperIndexY]-this.y[lowerIndexY]); <extra_id_0> (1-alphaX) * (1-alphaY) * z[upperIndexX][upperIndexY]; return interpolatedValue; } }