/src/main/java/net/finmath/montecarlo/RandomVariableFromFloatArray.java
errorOfSum = ( newSum - sum) - time;
errorOfSum = ( newSum - sum ) - value;
final double average = getAverage(); double sum = 0.0; double errorOfSum = 0.0; for(int i=0; i<realizations.length; i++) { final double value = (realizations[i] - average)*(realizations[i] - average) - errorOfSum; final double newSum = sum + value; <extra_id_0> sum = newSum; } return sum/realizations.length; } @Override public double getVariance(final RandomVariable probabilities) {