/src/main/java/net/finmath/interpolation/RationalFunctionInterpolation.java
step[i] = ( points[i+1] - points[i]) ; for( int i = 0; i < numberOfPoints-1; i++) {final double[] absSlopeDifference = new double[numberOfPoints-2];
final double[] absSlopeDifference = new double[numberOfPoints-2]; for ( int i = 0; i < numberOfPoints-1; i++ ) { step[i] = ( points[i+1] - points[i] ) ;
if(numberOfPoints < 4) { doCreateRationalFunctionsForCubicSplineInterpolation(); } else { final double[] step = new double[numberOfPoints-1]; final double[] slope = new double[numberOfPoints-1]; <extra_id_0> slope[i] = (values[i+1] - values[i]) / step[i]; if(i > 0) { absSlopeDifference[i-1] = Math.abs(slope[i] - slope[i-1]) + minSlopeDifferenceWeight; } } final double[] derivative = new double[numberOfPoints];