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