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