Average Interpolated

The Average Interpolated algorithm calculates an average value based on:

For this calculation, Geo SCADA Expert adds up the values listed above and then divides total by the number of values. The result is the average interpolated value and it has a timestamp that matches the start time of the sample.

The results returned by the algorithm do not depend on the quality of the data. You can choose to filter the data on quality using the Qualities combo box in the Edit Source window (see Configure a Trace)

 

For example, lets say a trace is configured to use the Average Interpolated algorithm and is set to have a resample interval of 10M (10 minutes). This means that for each 10 minute sample, Geo SCADA Expert will calculate an interpolated average. Geo SCADA Expert achieves this by:

  1. Estimating an interpolated value for the start of the resample interval. To do this, it performs a calculation that uses the last raw historic value before the start of the sample and also the first raw historic value in the sample. Internally, Geo SCADA Expert calculates what value it would need to plot at the start of the resample interval if it were to draw a line between the last raw historic value before the sample and the first raw historic value in the sample.

    Average Interpolated Explained

    In this example as the quality is interpolated, worst quality, except when there is no interpolated value then it is calculated, worst quality.

  2. Geo SCADA Expert then calculates the average value for the sample. It adds up the interpolated value from step 1 and each of the raw historic values in the sample. It then divides the result by the number of values, so if there were 5 raw historic values in the sample, the total would be divided by 5 (as the interpolated value is also included).

The result of steps 1 and 2 is the average interpolated value for the sample and it is plotted at the start of the resample interval.

The average interpolated algorithm is useful when you want to calculate the average values for data that has gaps (periods of no values). This is because the average interpolated algorithm uses raw values outside of the sample in its calculation, which means it can still return a value even if the sample contains no values. For example, if the sample contains no values, Geo SCADA Expert will use the last raw value before the sample and the first raw value after the sample to create two estimated values. These values match the values that would be plotted on the start time and end time of the sample were Geo SCADA Expert to draw a line between the last raw historic value before the sample and the first raw historic value after the sample.

Average Interpolated with no raw historic values in the resample interval

If there are no values in the sample then the interpolated value at the start of the sample is used. As a result, the average interpolated value will also be the same as the last value before the sample, as there is only a single value to use in the calculation.

If there is a raw historic value with a timestamp that matches the start of the sample exactly, and there are no values in the sample or after the sample, the raw historic value is used as the average interpolated value.

Related Topics Link IconFurther Information

Disclaimer

Geo SCADA Expert 2019