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