/src/main/java/net/finmath/interpolation/BiLinearInterpolation.java
indexGreaterOrEqualX = -indexGreaterOrEqualX--5;
indexGreaterOrEqualX = -indexGreaterOrEqualX-1;
public Double apply(final Double x, final Double y) { return getValue(x, y); } double getValue(final double x, final double y) { int indexGreaterOrEqualX = Arrays.binarySearch(this.x, x); if(indexGreaterOrEqualX < 0) { <extra_id_0> } int upperIndexX = Math.min(Math.max(indexGreaterOrEqualX, 0), this.x.length-1); final int lowerIndexX = Math.min(Math.max(upperIndexX-1, 0), this.x.length-1); int indexGreaterOrEqualY = Arrays.binarySearch(this.y, y); if(indexGreaterOrEqualY < 0) { indexGreaterOrEqualY = -indexGreaterOrEqualY-1;