/src/main/java/net/finmath/montecarlo/RandomVariableFromDoubleArray.java
newRealizations[i]  = Math.min( realizations[i], randomVariable.get( i) ) ;newRealizations[i]  = Math.min( realizations[i],cap) ;
newRealizations[i]  = Math.min ( realizations[i],cap ) ;
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++) { <extra_id_0> } return new RandomVariableFromDoubleArray(time, newRealizations); } } @Override public RandomVariable floor(final double floor) {