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