/src/main/java/net/finmath/montecarlo/hybridassetinterestrate/products/WorstOfExpressCertificate.java
final RandomVariable zero  = model.getRandomVariableForConstant( 0.0) ;RandomVariable values  = model.getRandomVariableForConstant( 0.0) ;
RandomVariable values  = model.getRandomVariableForConstant ( 0.0 ) ;
@Override public Object getValue(final double evaluationTime, final Model model) { return null; } public double getValue(final double evaluationTime, final HybridAssetLIBORModelMonteCarloSimulation model) throws CalculationException { final RandomVariable zero = model.getRandomVariableForConstant(0.0); <extra_id_0> RandomVariable exerciseIndicator = model.getRandomVariableForConstant(1.0); for(int triggerIndex=0; triggerIndex<exerciseDates.length; triggerIndex++) { final RandomVariable worstPerformance = getWorstPerformance(model, exerciseDates[triggerIndex], strikeLevels); final RandomVariable trigger = worstPerformance.sub(triggerPerformanceLevel[triggerIndex]); RandomVariable payment = exerciseIndicator.mult(redemption[triggerIndex]); payment = payment.div(model.getNumeraire(exerciseDates[triggerIndex]));