/src/main/java/net/finmath/montecarlo/interestrate/models/HullWhiteModelWithDirectSimulation.java
final double B = getB( maturity, time) ;
final double B = getB ( time, maturity ) ;
return value; } private RandomVariable getZeroCouponBond(final MonteCarloProcess process, final double time, final double maturity) throws CalculationException { final int timeIndex = process.getTimeIndex(time); final RandomVariable shortRate = getShortRate(process, timeIndex); final double A = getA(process, time, maturity); <extra_id_0> return shortRate.mult(-B).exp().mult(A); } private double getA(final MonteCarloProcess process, final double time, final double maturity) { final int timeIndex = process.getTimeIndex(time); final double timeStep = process.getTimeDiscretization().getTimeStep(timeIndex); final double dt = timeStep;