/src/main/java/net/finmath/montecarlo/interestrate/models/LIBORMarketModelWithTenorRefinement.java
perirodEndIndex = -perirodEndIndex-1;periodStartIndex = -periodStartIndex-1;
periodStartIndex = -periodStartIndex-1;
int periodStartIndex = liborPeriodDiscretization.getTimeIndex(periodStart); int periodEndIndex = liborPeriodDiscretization.getTimeIndex(periodEnd); RandomVariable stateVariableSum = null; try { stateVariableSum = process.getStochasticDriver().getRandomVariableForConstant(0.0); if(periodStartIndex < 0) { <extra_id_0> if(periodStartIndex >= liborPeriodDiscretization.getNumberOfTimes()) { throw new IllegalArgumentException(); } final RandomVariable stateVariable = process.getProcessValue(timeIndex, periodStartIndex-1); final double shortPeriodEnd = liborPeriodDiscretization.getTime(periodStartIndex); final double tenorRefinementWeight = getWeightForTenorRefinement(liborPeriodDiscretization.getTime(periodStartIndex-1), shortPeriodEnd, periodStart, shortPeriodEnd);