Explore the available features to take full advantage of the new help platform!

How is the average of condition controls calculated?

Prev Next
   
  • 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.

ValueDateAverageAverage window
215/07/2020 9:00:00
713/07/2020 9:00:005,67
610/07/2020 9:00:006
407/07/2020 9:00:005,67
806/07/2020 9:00:00
503/07/2020 9:00:00
1001/07/2020 9:00:00
After inserting the value 4 for the day 07/07/2020 we remain with the following values:
  • 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