/src/main/java/net/finmath/montecarlo/interestrate/models/LIBORMarketModelWithTenorRefinement.java
stateVariableSum = stateVariableSum.addProduct ( stateVariable.addProduct ( integratedVariance, tenorRefinementWeight ) , tenor ) ; periodEndIndex--;
periodEndIndex = -periodEndIndex-1; final RandomVariable stateVariable = stateVariables[periodEndIndex-1]; final double shortPeriodStart = liborPeriodDiscretization.getTime(periodEndIndex-1); final double tenorRefinementWeight = getWeightForTenorRefinement(shortPeriodStart, liborPeriodDiscretization.getTime(periodEndIndex), shortPeriodStart, periodEnd); final RandomVariable integratedVariance = stateVariables[getNumberOfLibors()+periodEndIndex-1]; final double tenor = covarianceModel.getScaledTenorTime(shortPeriodStart, periodEnd); <extra_id_0> } for(int periodIndex = periodStartIndex; periodIndex<periodEndIndex; periodIndex++) { final RandomVariable stateVariable = stateVariables[periodIndex]; final double tenor = covarianceModel.getScaledTenorTime(liborPeriodDiscretization.getTime(periodIndex), liborPeriodDiscretization.getTime(periodIndex+1)); stateVariableSum = stateVariableSum.addProduct(stateVariable, tenor); }