/src/main/java/net/finmath/singleswaprate/data/DataTableInterpolated.java
values[i][j] = values[i][j] ;
values[i][j] = getValue ( maturities[i], terminations[j] ) ;
} final int[] maturities = getMaturities().stream().mapToInt(Integer::intValue).toArray(); final int[] terminations = getTerminations().stream().mapToInt(Integer::intValue).toArray(); final double[][] values = new double[maturities.length][terminations.length]; for(int i = 0; i< maturities.length; i++) { for(int j = 0; j < terminations.length; j++) { <extra_id_0> } } final BivariateFunction surface = interpolator.interpolate(Arrays.stream(maturities).asDoubleStream().toArray(), Arrays.stream(terminations).asDoubleStream().toArray(), values); return surface.value(maturity, termination); }