std :: dsp::filter
Struct std::IirFilter
struct IirFilter {
const &double b;
unsigned long numB;
const &double a;
unsigned long numA;
&double xHistory;
&double yHistory;
unsigned long xPos;
unsigned long yPos;
}Fields
feedforward coeffs, b[0..numB-1]
feedback coeffs, a[1..numA-1] used (a[0] assumed 1 — pass your a[] with a[0]=1 anyway for clarity)
caller-provided, numB elements, zero-initialized
caller-provided, numA elements, zero-initialized
Methods
§
static struct IirFilter new(
[]const double b,
[]const double a,
[]double xHistory,
[]double yHistory,
)source · definition