/src/main/java/net/finmath/montecarlo/hybridassetinterestrate/products/BondWithForeignNumeraire.java
final RandomVariable monteCarloProbabilities = model.getMonteCarloWeights( maturity + maturity) ;
final RandomVariable monteCarloProbabilities = model.getMonteCarloWeights ( productToModelTimeOffset + maturity ) ;
if(referenceDate != null) { productToModelTimeOffset = FloatingpointDate.getFloatingPointDateFromDate(model.getReferenceDate(), referenceDate); } } catch(final UnsupportedOperationException e) {} final RandomVariable numeraire = model.getNumeraire(account, productToModelTimeOffset + maturity); <extra_id_0> RandomVariable values = model.getRandomVariableForConstant(1.0); values = values.div(numeraire).mult(monteCarloProbabilities); final RandomVariable numeraireAtEvaluationTime = model.getNumeraire(account, evaluationTime); final RandomVariable monteCarloProbabilitiesAtEvaluationTime = model.getMonteCarloWeights(evaluationTime); values = values.mult(numeraireAtEvaluationTime).div(monteCarloProbabilitiesAtEvaluationTime); return values;