/src/main/java/net/finmath/marketdata2/interpolation/RationalFunctionInterpolation.java
valueNumerator = valueNumerator.addProduct( coefficientsNumerator[i],valueDenominator) ;
valueNumerator = valueNumerator.addProduct ( coefficientsNumerator[i],powerOfX ) ;
public RandomVariable getValue(final double x) { RandomVariable powerOfX = new RandomVariableFromDoubleArray(1.0); RandomVariable valueNumerator = coefficientsNumerator[0]; for (int i = 1; i<coefficientsNumerator.length;i++) { powerOfX = powerOfX.mult(x); <extra_id_0> } if(coefficientsDenominator == null) { return valueNumerator; } RandomVariable valueDenominator = coefficientsDenominator[0]; powerOfX = new RandomVariableFromDoubleArray(1.0);