Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Rolling window moving average and variance. More...
#include <mov_stats.h>
Public Member Functions | |
MovStats (IArena &arena, const size_t win_len) | |
Initialize. More... | |
bool | is_valid () const |
Check that initial allocation succeeded. More... | |
void | add (const T &x) |
Shift rolling window by one sample x. More... | |
T | mov_avg () const |
Get moving average value. More... | |
T | mov_var () const |
Get variance. More... | |
T | mov_max () const |
Max value in sliding window. More... | |
T | mov_min () const |
Min value in sliding window. More... | |
ROC_ATTR_NODISCARD bool | extend_win (const size_t new_win) |
Extend rolling window length. More... | |
Rolling window moving average and variance.
T | defines a sample type. |
Definition at line 29 of file mov_stats.h.
|
inline |
Initialize.
Definition at line 32 of file mov_stats.h.
|
inline |
Shift rolling window by one sample x.
Definition at line 72 of file mov_stats.h.
|
inline |
Extend rolling window length.
Definition at line 138 of file mov_stats.h.
|
inline |
Check that initial allocation succeeded.
Definition at line 67 of file mov_stats.h.
|
inline |
Get moving average value.
Definition at line 93 of file mov_stats.h.
|
inline |
Max value in sliding window.
Definition at line 119 of file mov_stats.h.
|
inline |
Min value in sliding window.
Definition at line 124 of file mov_stats.h.
|
inline |
Get variance.
Definition at line 106 of file mov_stats.h.