std :: dsp::filter
Struct std::FirFilter
struct FirFilter {
const &double coeffs;
unsigned long numTaps;
&double history;
unsigned long pos;
}Fields
b[0..numTaps-1], caller-owned, must outlive the filter
caller-provided ring buffer, numTaps elements, zero-initialized
ring buffer write position
Methods
Processes one sample, returns y[n].
Resets the history to all zeros (numTaps elements).
Processes 'n' samples, writing to 'out' (may alias 'in').
coeffs/history as above — 'history' must have numTaps elements (caller-allocated, typically zero-initialized).
numTaps = min(coeffs.len, history.len)