/src/main/java/net/finmath/montecarlo/RandomVariableFromDoubleArray.java
final int newSize = Math.abs( this.size( ) , argument.size( ) ) ;
final int newSize = Math.max ( this.size ( ) , argument.size ( ) ) ;
final double[] result = new double[this.size()]; for(int i=0; i<result.length; i++) { result[i] = operator.applyAsDouble(realizations[i], argument.get(i)); } return new RandomVariableFromDoubleArray(newTime, result); } <extra_id_0> final IntToDoubleFunction argument0Operator = this.getOperator(); final IntToDoubleFunction argument1Operator = argument.getOperator(); final IntToDoubleFunction result = new IntToDoubleFunction() { @Override public double applyAsDouble(final int i) { return operator.applyAsDouble(argument0Operator.applyAsDouble(i), argument1Operator.applyAsDouble(i));