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