/src/main/java/net/finmath/montecarlo/RandomVariableLazyEvaluation.java
for ( final double realization : getRealizationsStream( ) ) {
for ( final double realization : getRealizations ( ) ) {
} if(size() == 0) { return Double.NaN; } double sum = 0.0; double sumOfSquared = 0.0; <extra_id_0> sum += realization; sumOfSquared += realization * realization; } return sumOfSquared/size() - sum/size() * sum/size(); } @Override