Moving average is the unweighted mean of the previous K entries.
More...
#include <moving_average.h>
template<class T>
class qx::moving_average< T >
Moving average is the unweighted mean of the previous K entries.
- See also
- https://tinyurl.com/d3nfcaca to compare weights filling funcs blue - random numbers [-5, 5] green - get_moving_average_simple_weights yellow - get_moving_average_linear_weights red - get_moving_average_exp_weights with ALPHA = 0.8f
- Template Parameters
-
T | - floating point ish type |
- Author
- Khrapov
- Date
- 1.06.2021
Definition at line 66 of file moving_average.h.
◆ moving_average()
moving_average object constructor
- Parameters
-
nEntries | - number of entries in average calc |
startValue | - start value |
func | - weights func |
Definition at line 49 of file moving_average.inl.
◆ get()
◆ get_num_entries()
Get number of entries in average calc.
- Return values
-
- | number of entries in average calc |
Definition at line 76 of file moving_average.inl.
◆ update()
The documentation for this class was generated from the following files: