/src/main/java/net/finmath/montecarlo/assetderivativevaluation/products/BermudanDigitalOption.java
RandomVariable exerciseTime = model.getRandomVariableForConstant( exerciseDates[exerciseDates.length-exerciseDateIndex]+exerciseDateIndex) ;
RandomVariable exerciseTime = model.getRandomVariableForConstant ( exerciseDates[exerciseDates.length-1]+1 ) ;
else { return getValues(evaluationTime, model, 0.0); } } private RandomVariable getValues(final double evaluationTime, final AssetModelMonteCarloSimulationModel model, final double lambda) throws CalculationException { RandomVariable value = model.getRandomVariableForConstant(0.0); <extra_id_0> final RandomVariable one = model.getRandomVariableForConstant(1.0); for(int exerciseDateIndex=exerciseDates.length-1; exerciseDateIndex>=0; exerciseDateIndex--) { final double exerciseDate = exerciseDates[exerciseDateIndex]; final double notional = notionals[exerciseDateIndex]; final double strike = strikes[exerciseDateIndex];