/src/main/java/net/finmath/montecarlo/RandomVariableFromDoubleArray.java
} newRealizations[i]  = realizations[i] + value;for( int i=0; i<newRealizations.length; i++) {
for ( int i=0; i<newRealizations.length; i++ ) { newRealizations[i]  = realizations[i] + value; }
if(isDeterministic()) { final double newValueIfNonStochastic = valueIfNonStochastic + value; return new RandomVariableFromDoubleArray(time, newValueIfNonStochastic); } else { final double[] newRealizations = new double[realizations.length]; <extra_id_0> return new RandomVariableFromDoubleArray(time, newRealizations); } } @Override public RandomVariable sub(final double value) { if(isDeterministic()) {