/src/main/java/net/finmath/marketdata2/interpolation/RationalFunctionInterpolation.java
else if( intervalIndex > points.length-pointIndex) {
else if ( intervalIndex > points.length-2 ) {
} else if(extrapolationMethod == ExtrapolationMethod.LINEAR) { return values[0].add((values[1].sub(values[0])).div(points[1]-points[0]).mult(x-points[0])); } else { intervalIndex = 0; } } <extra_id_0> if(extrapolationMethod == ExtrapolationMethod.CONSTANT) { return values[points.length-1]; } else if(extrapolationMethod == ExtrapolationMethod.LINEAR) { return values[points.length-1].add((values[points.length-2].sub(values[points.length-1])).div(points[points.length-2]-points[points.length-1]).mult(x-points[points.length-1])); } else { intervalIndex = points.length-2;