---
title: HKQuantityAggregationStyle.discreteArithmetic
framework: healthkit
role: symbol
role_heading: Case
path: healthkit/hkquantityaggregationstyle/discretearithmetic
---

# HKQuantityAggregationStyle.discreteArithmetic

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

## Declaration

```swift
case discreteArithmetic
```

## Discussion

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.

## See Also

### Aggregation Styles

- [HKQuantityAggregationStyle.cumulative](healthkit/hkquantityaggregationstyle/cumulative.md)
- [HKQuantityAggregationStyle.discreteTemporallyWeighted](healthkit/hkquantityaggregationstyle/discretetemporallyweighted.md)
- [HKQuantityAggregationStyle.discreteEquivalentContinuousLevel](healthkit/hkquantityaggregationstyle/discreteequivalentcontinuouslevel.md)
