-
PT
-
ES
When inserting monitoring values, the moving average is calculated for that value considering the average window defined in the monitoring and the average window value used on the calculation is also saved. It is performed for the next N-1 values (in the most recent date), and N is the average window value defined on the monitoring.
Example
The calculation of the average for a value is that value's sum with the previous N-1 values (in the oldest date) dividing by N, and N is the average window value defined on the monitoring.
| Value | Date | Average | Average window |
| 2 | 15/07/2020 9:00:00 | ||
| 7 | 13/07/2020 9:00:00 | 5,67 | |
| 6 | 10/07/2020 9:00:00 | 6 | |
| 4 | 07/07/2020 9:00:00 | 5,67 | |
| 8 | 06/07/2020 9:00:00 | ||
| 5 | 03/07/2020 9:00:00 | ||
| 10 | 01/07/2020 9:00:00 |
- Average window: 3
- The value 4 is inserted in a date between the values 8 and 6: 10, 5, 8, 4, 6, 7, 2
- The calculation of the average for the value 4 is: (4 + 8 + 5) / 3 = 5,67
- The calculation of the average for the value 6 is updated to: (6 + 4 + 8) / 3 = 6
- The calculation of the average for the value 7 is updated to: (7 + 6 + 4) / 3 = 5,67