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