/src/main/java/net/finmath/montecarlo/interestrate/products/MoneyMarketAccount.java
if ( inceptionTime > evaluationTime ) { return new RandomVariableFromDoubleArray ( 0.0 ) ; }
} public MoneyMarketAccount() { this(0.0, 1.0, -1.0); } @Override public RandomVariable getValue(final double evaluationTime, final TermStructureMonteCarloSimulationModel model) throws CalculationException { <extra_id_0> if(accrualPeriod <= 0) { return new RandomVariableFromDoubleArray(Double.MAX_VALUE); } RandomVariable value = new RandomVariableFromDoubleArray(initialValue); for(double time=inceptionTime; time<evaluationTime; time += accrualPeriod) { final RandomVariable forwardRate = model.getForwardRate(time, time, time+accrualPeriod);