C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
AggregateCalculatorStdDev Class Reference

Calculates the value of the aggregates StandardDeviationSample, VarianceSample, StandardDeviationPopulation and VariancePopulation. More...

#include <aggregatecalculatorstddev.h>

Inherits AggregateCalculator.

Public Member Functions

 AggregateCalculatorStdDev (UaNodeId aggregateId, UaDateTime startTime, UaDateTime endTime, double processingInterval, bool stepped, OpcUa_AggregateConfiguration &configuration)
 Initializes the aggregate calculator. More...
 

Static Public Member Functions

static
AggregateCalculatorInterface
CreateCalculator (UaNodeId aggregateId, UaDateTime startTime, UaDateTime endTime, double processingInterval, bool stepped, OpcUa_AggregateConfiguration &configuration)
 Used by the Aggregators factory to create a new instance of the aggregate calculator. More...
 

Protected Member Functions

UaDataValue ComputeValue (TimeSlice &slice)
 Computes the value for the timeslice. More...
 
UaDataValue ComputeRegression (TimeSlice &slice, int valueType)
 Calculates the RegSlope, RegConst and RegStdDev aggregates for the timeslice. More...
 
UaDataValue ComputeStdDev (TimeSlice &slice, int varianceType, int valueType)
 Calculates the StdDev, Variance, StdDev2 and Variance2 aggregates for the timeslice. More...
 

Detailed Description

Calculates the value of the aggregates StandardDeviationSample, VarianceSample, StandardDeviationPopulation and VariancePopulation.

Constructor & Destructor Documentation

AggregateCalculatorStdDev::AggregateCalculatorStdDev ( UaNodeId  aggregateId,
UaDateTime  startTime,
UaDateTime  endTime,
double  processingInterval,
bool  stepped,
OpcUa_AggregateConfiguration configuration 
)

Initializes the aggregate calculator.

Parameters
aggregateIdThe aggregate function to apply.
startTimeThe start time.
endTimeThe end time.
processingIntervalThe processing interval.
steppedWhether to use stepped interpolation.
configurationThe aggregate configuration.

Member Function Documentation

UaDataValue AggregateCalculatorStdDev::ComputeRegression ( TimeSlice slice,
int  valueType 
)
protected

Calculates the RegSlope, RegConst and RegStdDev aggregates for the timeslice.

UaDataValue AggregateCalculatorStdDev::ComputeStdDev ( TimeSlice slice,
int  varianceType,
int  valueType 
)
protected

Calculates the StdDev, Variance, StdDev2 and Variance2 aggregates for the timeslice.

UaDataValue AggregateCalculatorStdDev::ComputeValue ( TimeSlice slice)
protectedvirtual

Computes the value for the timeslice.

Reimplemented from AggregateCalculator.

AggregateCalculatorInterface * AggregateCalculatorStdDev::CreateCalculator ( UaNodeId  aggregateId,
UaDateTime  startTime,
UaDateTime  endTime,
double  processingInterval,
bool  stepped,
OpcUa_AggregateConfiguration configuration 
)
static

Used by the Aggregators factory to create a new instance of the aggregate calculator.

Parameters
aggregateIdThe aggregate function to apply.
startTimeThe start time.
endTimeThe end time.
processingIntervalThe processing interval.
steppedWhether to use stepped interpolation.
configurationThe aggregate configuration.

The documentation for this class was generated from the following files: