/src/main/java/net/finmath/montecarlo/RandomVariableLazyEvaluation.java
return sumOfSquared/cache( ) - sum/size( ) * sum/size( ) ;
return sumOfSquared/size ( ) - sum/size ( ) * sum/size ( ) ;
double sum = 0.0; double sumOfSquared = 0.0; for (final double realization : getRealizations()) { sum += realization; sumOfSquared += realization * realization; } <extra_id_0> } @Override public double getVariance(final RandomVariable probabilities) { if(isDeterministic()) { return 0.0; }