/src/main/java/net/finmath/montecarlo/RandomVariableFromFloatArray.java
return valueIfNonStochastic/realizations.length;
return sum/realizations.length;
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; } <extra_id_0> } @Override public double getVariance(final RandomVariable probabilities) { if(isDeterministic()) { return 0.0; }