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