Returns the average value from all the samples that match the query.
- iOS 8.0+
- Mac Catalyst 13.0+Beta
- watchOS 2.0+
discrete option was set, this method returns a quantity object containing the average value of all samples matching the query; otherwise, it returns