<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKQuantityAggregationStyle/discreteArithmetic",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@E@HKQuantityAggregationStyle@HKQuantityAggregationStyleDiscreteArithmetic"
  },
  "title" : "HKQuantityAggregationStyle.discreteArithmetic"
}
-->

# HKQuantityAggregationStyle.discreteArithmetic

Discrete samples that can be averaged over time using an arithmetic mean.

```
case discreteArithmetic
```

## Discussion

Use discrete types to monitor changes in a value over time. Body mass, heart rate, temperature, and respiratory rate are all discrete quantity types. You can also query for the minimum or maximum value in a given time period.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)