Beatmup
|
Computes moving average over a given number of samples. More...
#include <profiler.h>
Public Member Functions | |
MovingAverage () | |
datatype | update (datatype newSample) |
datatype | operator() () const |
Private Attributes | |
datatype | samples [1<< log_length] |
datatype | sum |
size_t | idx |
size_t | level |
Static Private Attributes | |
static const size_t | MASK = (1 << log_length) - 1 |
Computes moving average over a given number of samples.
Definition at line 64 of file profiler.h.
|
inline |
Definition at line 70 of file profiler.h.
|
inline |
Definition at line 72 of file profiler.h.
|
inline |
Definition at line 83 of file profiler.h.
|
staticprivate |
Definition at line 66 of file profiler.h.
|
private |
Definition at line 67 of file profiler.h.
|
private |
Definition at line 67 of file profiler.h.
|
private |
Definition at line 68 of file profiler.h.
|
private |
Definition at line 68 of file profiler.h.