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