/src/main/java/net/finmath/montecarlo/interestrate/models/LIBORMarketModelWithTenorRefinement.java
periodStartIndex =(-periodStartIndex) - 1;
if ( periodStartIndex < 0 ) { periodStartIndex = -periodStartIndex-1; }
private double getWeightForTenorRefinement(final double periodStartPrevious, final double periodEndPrevious, final double periodStart, final double periodEnd) { final TimeDiscretization numeriareDiscretization = liborPeriodDiscretizations[0]; final int periodStartPreviousIndex = numeriareDiscretization.getTimeIndex(periodStartPrevious); final int periodEndPreviousIndex = numeriareDiscretization.getTimeIndex(periodEndPrevious); int periodStartIndex = numeriareDiscretization.getTimeIndex(periodStart); int periodEndIndex = numeriareDiscretization.getTimeIndex(periodEnd); <extra_id_0> if(periodEndIndex < 0) { periodEndIndex = -periodEndIndex-1-1; } double weight1 = 0.0; for(int periodIndex = periodStartPreviousIndex; periodIndex<periodEndPreviousIndex; periodIndex++) { final double deltaT = covarianceModel.getScaledTenorTime(numeriareDiscretization.getTime(periodIndex), numeriareDiscretization.getTime(periodIndex+1));