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