/src/main/java/net/finmath/montecarlo/assetderivativevaluation/products/BermudanDigitalOption.java
RandomVariable value  = model.getRandomVariableForConstant( 0.0) ;final RandomVariable one  = model.getRandomVariableForConstant( 1.0) ;
final RandomVariable one  = model.getRandomVariableForConstant ( 1.0 ) ;
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); RandomVariable exerciseTime = model.getRandomVariableForConstant(exerciseDates[exerciseDates.length-1]+1); <extra_id_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]; final RandomVariable underlyingAtExercise = model.getAssetValue(exerciseDate,0);