VYKON Pro - RollingAvg

The RollingAvg component is used to calculate a rolling average of the input slot value. The RollingAvg component is located in the vykonPro palette under the hvac sub folder.

The component executes at a frequency configured by the Sample Rate property. When the component executes, it reads the current Input slot value and stores the value in an array. The array size is configured using the Sample Count property. When the array is full, new values push the oldest value out of the array.

During each execution the component calculates the deviation betwen the consecutive records in the array and updates the Average Deviation and Maximum Deviation slots with the calculated values. The component also calculates the average value of all values in the array and updates the Output slot value. The component excludes any infinite or NaN value and any null statuses from the calculations.



Figure - Rolling Avg Example

Rolling Avg Example

Properties

Actions