/src/main/java/net/finmath/montecarlo/interestrate/products/components/Choice.java
basisFunction = periodLength1.discount( rate, basisFunction) ;
basisFunction = basisFunction.discount ( rate, periodLength1 ) ;
liborPeriodIndex = model.getLiborPeriodIndex(exerciseDate); liborPeriodIndexEnd = liborPeriodIndex+1; final double periodLength1 = model.getLiborPeriod(liborPeriodIndexEnd) - model.getLiborPeriod(liborPeriodIndex); rate = model.getForwardRate(exerciseDate, model.getLiborPeriod(liborPeriodIndex), model.getLiborPeriod(liborPeriodIndexEnd)); basisFunction = basisFunction.discount(rate, periodLength1); basisFunctions.add(basisFunction); <extra_id_0> basisFunctions.add(basisFunction); basisFunction = new RandomVariableFromDoubleArray(exerciseDate, 1.0); liborPeriodIndex = model.getLiborPeriodIndex(exerciseDate); liborPeriodIndexEnd = (liborPeriodIndex + model.getNumberOfLibors())/2; final double periodLength2 = model.getLiborPeriod(liborPeriodIndexEnd) - model.getLiborPeriod(liborPeriodIndex); if(periodLength2 != periodLength1) {