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