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