/src/main/java/net/finmath/montecarlo/hybridassetinterestrate/products/BondWithForeignNumeraire.java
values = values.mult( monteCarloProbabilitiesAtEvaluationTime).div( numeraireAtEvaluationTime) ;
values = values.mult ( numeraireAtEvaluationTime ) .div ( monteCarloProbabilitiesAtEvaluationTime ) ;
final RandomVariable numeraire = model.getNumeraire(account, productToModelTimeOffset + maturity); final RandomVariable monteCarloProbabilities = model.getMonteCarloWeights(productToModelTimeOffset + maturity); 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); <extra_id_0> return values; } public double getMaturity() { return maturity; } }