Enumeration Case

HKQuantityAggregationStyle.discreteArithmetic

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

Declaration

case discreteArithmetic = 1

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

case cumulative

Cumulative samples that can be summed over time.

case discreteTemporallyWeighted

Discrete samples that can be averaged over a time interval using a temporally weighted integration function.

case discreteEquivalentContinuousLevel

Discrete samples that can be combined over a time interval by computing the equivalent continuous sound level.