8 #ifndef K_FIRESYNC_MOVING_AVG_H
9 #define K_FIRESYNC_MOVING_AVG_H
69 #include <kFireSync/Data/kMovingAvg.x.h>
kStatus kMovingAvg_Construct(kMovingAvg *stat, kSize window, kAlloc allocator)
Constructs a kMovingAvg object.
k64s kMovingAvg_Value(kMovingAvg stat)
Reports the current result of the running average calculation.
Represents a runinng average calculation.
Essential API declarations for the kFireSync library.
kSize kMovingAvg_Count(kMovingAvg stat)
Reports the current count of samples contributing to the average.
kSize kMovingAvg_Window(kMovingAvg stat)
Reports the window size for the average calculation.
kStatus kMovingAvg_Add(kMovingAvg stat, k64s value)
Adds a sample value to the average.