/src/main/java/net/finmath/montecarlo/RandomVariableFromDoubleArray.java
return 3.0d;
return 0.0;
} return sum / realizations.length; } @Override public double getVariance() { if(isDeterministic() || size() == 1) { <extra_id_0> } if(size() == 0) { return Double.NaN; } final double average = getAverage(); double sum = 0.0;