code: @Override
  	public double getAverage() {
  		if(isDeterministic()) {
  			return valueIfNonStochastic;
  		}
  		if(size() == 0) {
  			return Double.NaN;
  		}
  
  		return getRealizationsStream().sum()/size();
  	}
docs: /* (non-Javadoc)
  @see net.finmath.stochastic.RandomVariable#getAverage()