Definition at line 1 of file SimpleMovingAverage.c.
◆ SimpleMovingAverage()
void SimpleMovingAverage< Class T >::SimpleMovingAverage |
( |
int | pSize, |
|
|
T | pDefaultValue = 0 ) |
|
inlineprivate |
Initialize Simple Moving Average Cyclic Buffer.
- Parameters
-
pSize | size of the buffer |
pDefaultValue | initial value stored in buffer |
Definition at line 13 of file SimpleMovingAverage.c.
◆ Add()
Add new value and return average value from buffer.
- Parameters
-
newSample | value that will be added to buffer |
- Returns
- average value from the buffer
Definition at line 33 of file SimpleMovingAverage.c.
◆ m_Pointer
◆ m_Samples
◆ m_Size
◆ m_Sum
The documentation for this class was generated from the following file: