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