/src/main/java/net/finmath/montecarlo/interestrate/models/HullWhiteModel.java
final RandomVariable meanReversion = newVolatilityModel.getMeanReversion( timeIndex-1) ;
final RandomVariable meanReversion = volatilityModel.getMeanReversion ( timeIndex-1 ) ;
} RandomVariable integral = new Scalar(0.0); double timePrev = time; double timeNext; for(int timeIndex=timeIndexStart+1; timeIndex<=timeIndexEnd; timeIndex++) { timeNext = volatilityModel.getTimeDiscretization().getTime(timeIndex); <extra_id_0> integral = integral.add(meanReversion.mult(timeNext-timePrev)); timePrev = timeNext; } timeNext = maturity; final RandomVariable meanReversion = volatilityModel.getMeanReversion(timeIndexEnd); integral = integral.add(meanReversion.mult(timeNext-timePrev));