OPC HDA Aggregates

Aggregate nameDescriptionImplemented by APIS
Interpolative1. order interpolated values.x
TotalThe totalized value (time integral) of the data over the resample interval.x
AverageThe average data over the resample interval.x
Time AverageThe time weighted average data over the resample interval.x
CountThe number of raw values over the resample interval.x
Standard DeviationThe standard deviation over the resample interval.x
Minimum Actual TimeThe minimum value in the resample interval and the timestamp of the minimum value.x
MinimumThe minimum value in the resample interval.x
Maximum Actual TimeThe maximum value in the resample interval and the timestamp of the maximum value.x
MaximumThe maximum value in the resample interval.x
StartThe value at the beginning of the resample interval. The time stamp is the time stamp of the beginning of the interval.x
EndThe value at the end of the resample interval. The time stamp is the time stamp of the end of the interval.x
DeltaThe difference between the first and last value in the resample interval.
Regression Line SlopeThe slope of the regression line over the resample interval.
Regression Line ConstantThe intercept of the regression line over the resample interval. This is the value of the regression line at the start of the interval.
Regression Line ErrorThe standard deviation of the regression line over the resample interval.
VarianceThe variance over the sample interval.x
RangeThe difference between the minimum and maximum value over the sample interval.x
Duration GoodThe duration (in seconds) of time in the interval during which the data is good.x
Duration BadThe duration (in seconds) of time in the interval during which the data is bad.x
Percent GoodThe percent of data (1 equals 100 percent) in the interval, which has good quality.x
Percent BadThe percent of data (1 equals 100 percent) in the interval, which has bad quality.x
Worst QualityThe worst quality of data in the interval.x
AnnotationsThe number of annotations in the interval.

In addition, APIS Honeystore also implements the following vendor specific aggregates.

Aggregate nameDescription
SumThe sum of all raw values over the resample interval.
Interpolative zero-order0. order interpolated values, aka sample-and-hold.
MedianThe median is described as the numeric value separating the higher half of a set if values, from the lower half.
If a < b < c, then the median of the list {a, b, c} is b, and if a < b < c < d,
then the median of the list {a, b, c, d} is the mean of b and c, i.e. it is (b + c)/2.
MinimumActualTime2UA - The minimum value in the resample interval and its timestamp, including bounding values.
MaximumActualTime2UA - The maximum value in the resample interval and its timestamp, including bounding values.
Range2UA - The Range2 Aggregate finds the difference between the maximum and minimum values in the i nterval as returned by the Minimum2 and Maximum2 Aggregates. Note that the range is always zero or positive.
PercentGood (UA)UA - Retrieve the percent of data (0 to 100) in the interval which has a good StatusCode.
PercentBad (UA)UA - Retrieve the percent of data (0 to 100) in the interval which has a bad StatusCode.
VectorElementSumCaclulates the sum of vector elements individually (Not OPC HDA compliant)
VectorElementAverageCaclulates the average of vector elements individually (Not OPC HDA compliant)
VectorElementMinFinds the minimum of vector elements individually (Not OPC HDA compliant)
VectorElementMaxFinds the maximum of vector elements individually (Not OPC HDA compliant)
DisplayValuesValues that give the best trend curve representation for a specific number of pixels. The desired start/end time and the number of x-pixels (nx) available, are used to divide the period into nx resample intervals (1 resample interval per x-pixel). For each resample interval, anything from 0 to 4 data points may be returned. At most, the following data points are returned for each resample interval: the first data point, the maximum data point, the minimum data point and the last data point.
LowpassFilterLowpass filtering of the RAW data for the given period. The number of datapoints returned is the same as the number of raw datapoints.
The resample interval is interpreted as the time-constant (T). The algorithm is:
v(n+1) = v(n) + dT*(v(n+1) - v(n))/T
where
v - value
n - datapoint index
dT = timestamp(n+1) - timestamp(n)
If T <= dT, no filtering is applied to avoid instability.
MovingAverageByCountMoving average of the RAW data for the given period, ignoring the time between datapoints. The number of datapoints returned is the same as the number of raw datapoints.
The resample interval is interpreted as the number of values in the window. For the first window, a cumulative average is applied.
MovingAverageByTimeMoving average of the RAW data for the given period, taking the time between datapoints into account. The number of datapoints returned is the same as the number of raw datapoints.
The resample interval is interpreted as the the window size. For the first window, a cumulative average is applied.