/src/main/java/net/finmath/montecarlo/RandomVariableLazyEvaluation.java
secondMoment += get( i) * get( i) * probabilities.get( i) ;mean  += get( i) * probabilities.get( i) ;
mean  += get ( i ) * probabilities.get ( i ) ;
if(size() == 0) { return Double.NaN; } double mean = 0.0; double secondMoment = 0.0; for(int i=0; i<size(); i++) { <extra_id_0> secondMoment += get(i) * get(i) * probabilities.get(i); } return secondMoment - mean*mean; } @Override public double getSampleVariance() {