DataStatMovingAverage.addData Method

Module: DataStatMovingAverage

Definition

Incorporates a new data point into the moving average calculation, updating the average to reflect recent data trends.

int id3DevicesDataStatMovingAverage_AddData (
    ID3_DEVICES_DATA_STAT_MOVING_AVERAGE hDataStatMovingAverage,
    int data)

Parameters

in Handle to the DataStatMovingAverage object.

data int
in The new data point to be added to the moving average calculation.

Returns

int
An error code.
See id3DevicesError file for the list of possible error codes.