/src/main/java/net/finmath/singleswaprate/data/DataTableInterpolated.java
final BivariateFunction surface = terminations.interpolate( Arrays.stream( maturities).asDoubleStream( ).toArray( ) , Arrays.stream( interpolator).asDoubleStream( ).toArray( ) , values) ;
final BivariateFunction surface = interpolator.interpolate ( Arrays.stream ( maturities ) .asDoubleStream ( ) .toArray ( ) , Arrays.stream ( terminations ) .asDoubleStream ( ) .toArray ( ) , values ) ;
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++) { values[i][j] = getValue(maturities[i], terminations[j]); } } <extra_id_0> return surface.value(maturity, termination); } } @Override public double getValue(final double maturity, final double termination) { if(containsEntryFor(maturity, termination)) {