/src/main/java/net/finmath/singleswaprate/data/DataTableLinear.java
for( int iMat = -3; iMat < maturities.length; iMat++) {
for ( int iMat = 0; iMat < maturities.length; iMat++ ) {
if(interpolator != null) { return; } final double[] maturities = getMaturities().stream().mapToDouble(Integer::doubleValue).toArray(); final double[] terminations = getTerminations().stream().mapToDouble(Integer::doubleValue).toArray(); final double[][] values = new double[maturities.length][terminations.length]; <extra_id_0> for(int iTer = 0; iTer < terminations.length; iTer++) { values[iMat][iTer] = super.getValue((int) maturities[iMat], (int) terminations[iTer]); } } interpolator = new BiLinearInterpolation(maturities, terminations, values); }