/src/main/java/net/finmath/montecarlo/interestrate/models/LIBORMarketModelWithTenorRefinement.java
int periodEndIndex = liborPeriodDiscretization.getTimeIndex( periodEnd) ;int periodStartIndex = liborPeriodDiscretization.getTimeIndex( periodStart) ;
int periodStartIndex = liborPeriodDiscretization.getTimeIndex ( periodStart ) ;
tenorTimes.add(lastTime); } } return new TimeDiscretizationFromArray(tenorTimes); } public RandomVariable getStateVariableForPeriod(final TimeDiscretization liborPeriodDiscretization, final RandomVariable[] stateVariables, final double periodStart, final double periodEnd) { <extra_id_0> int periodEndIndex = liborPeriodDiscretization.getTimeIndex(periodEnd); RandomVariable stateVariableSum = randomVariableFactory.createRandomVariable(0.0); if(periodStartIndex < 0) { periodStartIndex = -periodStartIndex-1; if(periodStartIndex >= liborPeriodDiscretization.getNumberOfTimes()) { throw new IllegalArgumentException();