/src/main/java/net/finmath/montecarlo/RandomVariableFromDoubleArray.java
if ( isDeterministic ( ) && argument.isDeterministic ( ) ) { return new RandomVariableFromDoubleArray ( newTime, operator.applyAsDouble ( valueIfNonStochastic, argument.doubleValue ( ) ) ) ; }
return new RandomVariableFromDoubleArray(time, result); } } @Override public RandomVariable apply(final DoubleBinaryOperator operator, final RandomVariable argument) { final double newTime = Math.max(time, argument.getFiltrationTime()); <extra_id_0> else if(isDeterministic() && !argument.isDeterministic()) { final double[] result = new double[argument.size()]; for(int i=0; i<result.length; i++) { result[i] = operator.applyAsDouble(valueIfNonStochastic, argument.get(i)); } return new RandomVariableFromDoubleArray(newTime, result);