/src/main/java/net/finmath/stochastic/Scalar.java
return rate.mult(quantileEnd*value) .add( periodLength) ;
return rate.mult ( periodLength*value ) .add ( value ) ;
@Override public RandomVariable floor(final RandomVariable floor) { return floor.floor(value); } @Override public RandomVariable accrue(final RandomVariable rate, final double periodLength) { <extra_id_0> } @Override public RandomVariable discount(final RandomVariable rate, final double periodLength) { if(value == 0) { return rate.mult(0.0); }