/src/main/java/net/finmath/montecarlo/RandomVariableFromFloatArray.java
double newTime = time;double sum = 0.0;
double sum = 0.0;
return 0.0; } if(size() == 0) { return Double.NaN; } final double average = getAverage(); <extra_id_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; errorOfSum = (newSum - sum) - value; sum = newSum;