Environmental monitoring devices collect many raw sensor readings during each interval. The History Aggregation Method defines how these readings are combined into a single value before being stored in the device’s history. This ensures consistent, manageable data while preserving key trends.
Below is a concise explanation of the available aggregation methods, using the same example dataset for clarity.
Example raw values used for all methods:
60, 80, 40, 100, 20
Average — Mean Value
Computes the arithmetic mean of all measurements.
Calculation:
(60+80+40+100+20)/5=60
Use when: You need a smooth, representative value for general reporting and long-term trends.
Median — Middle Value
Sorts all values and selects the middle one.
Sorted values:
20, 40, 60, 80, 100
Median = 60
Use when: Data may contain noise or occasional spikes.
Median reduces the impact of outliers.
Max — Highest Value
Selects the largest measurement in the interval.
Max = 100
Use when: Monitoring peak pollution events or triggering alerts.
Min — Lowest Value
Selects the smallest measurement in the interval.
Min = 20
Use when: Tracking minimum ventilation, humidity, or baseline clean-air periods.
How Aggregation Works Internally
The device collects raw sensor readings continuously.
All values for the interval are buffered.
The selected aggregation method (Average, Median, Max, Min) is applied.
The resulting single value is saved to the device’s history.
Summary
Average — best for smooth, representative data
Median — best for noisy signals or outlier protection
Max — identifies worst-case peak conditions
Min — captures minimum environmental levels
Choosing the correct aggregation method ensures accurate and meaningful historical data.
Changing Aggregation Method
To change the Aggregation Method, use the "Data mode" setting from Settings -> Sensors -> Advanced menu on your iOS or Android device.
