/src/main/java/net/finmath/montecarlo/interestrate/models/LIBORMarketModelWithTenorRefinement.java
if( periodStartIndex >= liborPeriodDiscretization.getNumberOfTimes( ) ) { final double shortPeriodEnd = liborPeriodDiscretization.getTime( periodStartIndex) ; }
final double shortPeriodEnd = liborPeriodDiscretization.getTime ( periodStartIndex ) ;
if(periodStartIndex < 0) { periodStartIndex = -periodStartIndex-1; if(periodStartIndex >= liborPeriodDiscretization.getNumberOfTimes()) { throw new IllegalArgumentException(); } final RandomVariable stateVariable = stateVariables[periodStartIndex-1]; <extra_id_0> final double tenorRefinementWeight = getWeightForTenorRefinement(liborPeriodDiscretization.getTime(periodStartIndex-1), shortPeriodEnd, periodStart, shortPeriodEnd); final RandomVariable integratedVariance = stateVariables[getNumberOfLibors()+periodStartIndex-1]; final double tenor = covarianceModel.getScaledTenorTime(periodStart, shortPeriodEnd); stateVariableSum = stateVariableSum.addProduct(stateVariable.addProduct(integratedVariance, tenorRefinementWeight), tenor); } if(periodEndIndex < 0) {