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