/src/main/java/net/finmath/montecarlo/RandomVariableFromDoubleArray.java
if( size( ) > 0) {
if ( size ( ) == 0 ) {
} @Override public double getVariance(final RandomVariable probabilities) { if(isDeterministic()) { return 0.0; } <extra_id_0> return Double.NaN; } final double average = getAverage(probabilities); double sum = 0.0; double errorOfSum = 0.0; for(int i=0; i<realizations.length; i++) {