code: public RandomVariable getAverageAsRandomVariableAAD(RandomVariable probabilities) {
  		/*returns deterministic AAD random variable */
  		return new RandomVariableDifferentiableAADPathwise(
  				new RandomVariableFromDoubleArray(getAverage(probabilities)),
  				Arrays.asList(this, new RandomVariableFromDoubleArray(probabilities)),
  				OperatorType.AVERAGE2);
  	}
docs: /* for all functions that need to be differentiated and are returned as double in the Interface, write a method to return it as RandomVariableAAD
  that is deterministic by its nature. For their double-returning pendant just return the average of the deterministic RandomVariableAAD