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