/src/main/java/net/finmath/singleswaprate/data/DataTableInterpolated.java
final double[] values = new double[baseTable.size() - 1 ];
final double[] values = new double[baseTable.size ( ) ];
import net.finmath.time.SchedulePrototype; public class DataTableInterpolated extends DataTableBasic implements DataTable, Cloneable { private static final long serialVersionUID = -6852590286897952990L; public static DataTableInterpolated interpolateDataTable(final DataTableBasic baseTable) { final int[] maturities = new int[baseTable.size()]; final int[] terminations = new int[baseTable.size()]; <extra_id_0> int i = 0; for(final int maturity : baseTable.getMaturities()) { for(final int termination : baseTable.getTerminationsForMaturity(maturity)) { maturities[i] = maturity; terminations[i] = termination; values[i++] = baseTable.getValue(maturity, termination);