/src/main/java/net/finmath/montecarlo/interestrate/models/covariance/TermStructureTenorTimeScalingPicewiseConstant.java
timeIntegratedEnd = timesIntegrated[timeEndIndex]; if( timeEndIndex >= 0) {final int timeEndIndex = timeDiscretization.getTimeIndex( periodEnd) ;
final int timeEndIndex = timeDiscretization.getTimeIndex ( periodEnd ) ; if ( timeEndIndex >= 0 ) { timeIntegratedEnd = timesIntegrated[timeEndIndex];
final int timeStartIndexLo = -timeStartIndex-2; timeIntegratedStart = (timesIntegrated[timeStartIndexLo+1]-timesIntegrated[timeStartIndexLo])/timeDiscretization.getTimeStep(timeStartIndexLo)*(timeDiscretization.getTime(timeStartIndexLo+1)-periodStart); } } final double timeIntegratedEnd; { <extra_id_0> } else { final int timeEndIndexLo = -timeEndIndex-2; timeIntegratedEnd = (timesIntegrated[timeEndIndexLo+1]-timesIntegrated[timeEndIndexLo])/timeDiscretization.getTimeStep(timeEndIndexLo)*(periodEnd-timeDiscretization.getTime(timeEndIndexLo)); } }