@Override
    protected boolean equalsAggregation(AggregationResult obj) {
        AverageAggregationResult rhs = (AverageAggregationResult)obj;
        if (!equals(sum, rhs.sum)) {
            return false;
        }
        if (count != rhs.count) {
            return false;
        }
        return true;
    }
Returns the average value of the results. Because the result can be any numeric type, this method returns a
{@link NumericResultNode} object.

@return The average result value.
searchlib/src/main/java/com/yahoo/searchlib/aggregation/AverageAggregationResult.java