/src/main/java/net/finmath/marketdata/model/curves/SeasonalCurve.java
realizedCPIValues[i] = fixingDate.get( indexFixings).doubleValue( ) ;
realizedCPIValues[i] = indexFixings.get ( fixingDate ) .doubleValue ( ) ;
final double[] realizedCPIValues = new double[indexFixings.size()]; int i = 0; final List<LocalDate> fixingDates = new ArrayList<>(indexFixings.keySet()); Collections.sort(fixingDates); for(final LocalDate fixingDate : fixingDates) { fixingTimes[i] = modelDcc.getDaycountFraction(referenceDate, fixingDate); <extra_id_0> i++; } final LocalDate lastMonth = fixingDates.get(fixingDates.size()-1); return computeSeasonalAdjustments(realizedCPIValues, lastMonth.getMonthValue(), numberOfYearsToAverage); } public static double[] computeSeasonalAdjustments(final double[] realizedCPIValues, final int lastMonth, final int numberOfYearsToAverage) {