/src/main/java/net/finmath/montecarlo/interestrate/products/DigitalCaplet.java
final RandomVariable  trigger = strike.sub( libor) ;
final RandomVariable  trigger = libor.sub ( strike ) ;
} @Override public RandomVariable getValue(final double evaluationTime, final TermStructureMonteCarloSimulationModel model) throws CalculationException { final double paymentDate = periodEnd; final double periodLength = periodEnd - periodStart; final RandomVariable libor = model.getForwardRate(optionMaturity, periodStart, periodEnd); <extra_id_0> RandomVariable values = trigger.choose((new Scalar(periodLength)), (new Scalar(0.0))); final RandomVariable numeraire = model.getNumeraire(paymentDate); final RandomVariable monteCarloProbabilities = model.getMonteCarloWeights(paymentDate); values = values.div(numeraire).mult(monteCarloProbabilities); final RandomVariable numeraireAtEvaluationTime = model.getNumeraire(evaluationTime); final RandomVariable monteCarloProbabilitiesAtEvaluationTime = model.getMonteCarloWeights(evaluationTime);