add test5

This commit is contained in:
2026-05-17 23:43:07 +02:00
parent 555c976df2
commit d08495a451
7 changed files with 85 additions and 5 deletions

View File

@@ -42,7 +42,18 @@ protected:
Filt y;
Filt x;
public:
/**
* Create IIR filter from coefficients 'b' and 'a' (numerator and denominator polynomial coefficients).
*/
IirFilter(std::vector<double> b, std::vector<double> a);
/**
* Create Butterworth lowpass filter.
* @param N order of Butterworth filter
* @param fc cutoff frequency in Hz
* @param fs sampling rate in Hz
*/
IirFilter(int N, double fc, double fs);
double filter(double val);
};