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