/src/main/java/net/finmath/singleswaprate/annuitymapping/BasicPiterbargAnnuityMapping.java
for( int index = 0; index <= numberOfPeriods; index++) {
for ( int index = 0; index < numberOfPeriods; index++ ) {
} exponentialMeans[0] = Math.exp(maturity *0.5 *volatilities[0] *volatilities[0]); exponentialMeans[0] *= periodLengths[0] /initialAnnuities[0] /(periodLengths[0] *initialSwapRates[0] +1.0); double adjustment; final double[] volatilitySums = new double[numberOfPeriods]; final double[] adjustmentSummands = new double[numberOfPeriods]; <extra_id_0> volatilitySums[index] = volatilities[0]; adjustmentSummands[index] = 1.0; } for(int index = 1; index < numberOfPeriods; index++){ adjustment = 0.0; for(int innerIndex = 0; innerIndex < index; innerIndex++){