Calculates the value of the aggregates Average, TimeAverage, TimeAverage2, Total and Total2.
More...
#include <aggregatecalculatoraverage.h>
Inherits AggregateCalculator.
Calculates the value of the aggregates Average, TimeAverage, TimeAverage2, Total and Total2.
Initializes the aggregate calculator.
- Parameters
-
aggregateId | The aggregate function to apply. |
startTime | The start time. |
endTime | The end time. |
processingInterval | The processing interval. |
stepped | Whether to use stepped interpolation. |
configuration | The aggregate configuration. |
Calculates the RegSlope, RegConst and RegStdDev aggregates for the timeslice.
UaDataValue AggregateCalculatorAverage::ComputeTimeAverage |
( |
TimeSlice & |
slice, |
|
|
bool |
useSimpleBounds, |
|
|
int |
valueType |
|
) |
| |
|
protected |
Calculates the StdDev, Variance, StdDev2 and Variance2 aggregates for the timeslice.
Used by the Aggregators factory to create a new instance of the aggregate calculator.
- Parameters
-
aggregateId | The aggregate function to apply. |
startTime | The start time. |
endTime | The end time. |
processingInterval | The processing interval. |
stepped | Whether to use stepped interpolation. |
configuration | The aggregate configuration. |
bool AggregateCalculatorAverage::UsesInterpolatedBounds |
( |
| ) |
|
|
virtual |
Indicates whether this aggregate uses Interpolated Bounding Values.
- Returns
- True if this aggregate uses Interpolated Bounding Values and false if it uses Simple Bounding Values.
Reimplemented from AggregateCalculator.
The documentation for this class was generated from the following files:
- C:/work/uasdkcpp/src/uaserver/uaservercpp/coremodule/aggregatecalculatoraverage.h
- C:/work/uasdkcpp/src/uaserver/uaservercpp/coremodule/aggregatecalculatoraverage.cpp