/src/main/java/net/finmath/montecarlo/RandomVariableLazyEvaluation.java
if ( isDeterministic( ) ) {   return valueIfNonStochastic; }
[Delete]
return Double.NaN; } return getRealizationsStream().sum()/size(); } @Override public double getAverage(final RandomVariable probabilities) { <extra_id_0> return valueIfNonStochastic * probabilities.getAverage(); } if(size() == 0) { return Double.NaN; } return this.cache().mult(probabilities).getRealizationsStream().sum();