#include <envelopes.h>
Rectangular moving average filter (FIR).
A filter of length 1 has order 0 (i.e. does nothing).
Methods | |
BoxFilter (int maxLength) | |
void | resize (int maxLength) |
Sets the maximum size (and current size, and resets) More... | |
void | set (int length) |
Sets the current size (expanding/allocating only if needed) More... | |
void | reset (Sample fill=Sample()) |
Resets (with an optional "fill" value) More... | |
Sample | operator() (Sample v) |
|
inline |
Resets (with an optional "fill" value)
|
inline |
Sets the maximum size (and current size, and resets)
|
inline |
Sets the current size (expanding/allocating only if needed)