FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kTimeAvg Class Reference

Description

Helper class to support calculation of running averages over a time window.

Inheritance diagram for kTimeAvg:
Inheritance graph

Public Member Functions

kStatus kTimeAvg_Add (kTimeAvg stat, k64u timestamp, k64s value)
 Adds a sample value to the data set. More...
 
kStatus kTimeAvg_Clear (kTimeAvg stat)
 Clears dataset. More...
 
kStatus kTimeAvg_Construct (kTimeAvg *stat, k64u window, k64u minInterval, kAlloc allocator)
 Constructs a kTimeAvg object. More...
 
kSize kTimeAvg_Count (kTimeAvg stat)
 Reports the current count of samples the dataset. More...
 
kStatus kTimeAvg_SampleDiff (kTimeAvg stat, k64u *timeDiff, k64s *valueDiff)
 Reports the time and value differences between the last and first samples. More...
 
k64s kTimeAvg_ValueSum (kTimeAvg stat)
 Reports the sum of current sample values in the dataset. More...
 

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