docs: @Override
  	public double getAverage(RandomVariable probabilities) {
  		if(isDeterministic()) {
  			return valueIfNonStochastic;
  		}
  		if(size() == 0) {
  			return Double.NaN;
  		}
  
  		return this.cache().mult(probabilities).getRealizationsStream().sum();
  	}