src/filter.cpp
FilterButterBand_24k_300_3000::FilterButterBand_24k_300_3000()
{
	B.push_back(7.980142011325120e-02);
	B.push_back(0.000000000000000e+00);
	B.push_back(-1.596028402265024e-01);
	B.push_back(0.000000000000000e+00);
	B.push_back(7.980142011325120e-02);
	A.push_back(1.000000000000000e+00);
	A.push_back(-2.962985985422413e+00);
	A.push_back(3.343529346636551e+00);
	A.push_back(-1.754916733002277e+00);
	A.push_back(3.766990822219589e-01);
	d.push_back(0);
	d.push_back(0);
	d.push_back(0);
	d.push_back(0);
}
// 4th-order Butterworth bandpass
// 300 Hz to 3000 Hz @ 24.4140625 kHz
// Create with MATLAB like so:
/*
n = 4; % filter order
sr = 24414.0625;
Wn = [300 3000] * 2 / sr;
[B,A] = butter(n/2, Wn);
sprintf('B.push_back(%0.15e);\n',B)
sprintf('A.push_back(%0.15e);\n',A)
sprintf('d.push_back(%d);\n', zeros(n,1))
*/
4th-order Butterworth bandpass
300 Hz to 3000 Hz @ 24.4140625 kHz
Create with MATLAB like so.


4th - order Butterworth bandpass 300 Hz to 3000 Hz @ 24 . 4140625 kHz Create with MATLAB like so .
FilterButterBand_24k_300_3000::FilterButterBand_24k_300_3000()
{
	B.push_back(7.980142011325120e-02);
	B.push_back(0.000000000000000e+00);
	B.push_back(-1.596028402265024e-01);
	B.push_back(0.000000000000000e+00);
	B.push_back(7.980142011325120e-02);
	A.push_back(1.000000000000000e+00);
	A.push_back(-2.962985985422413e+00);
	A.push_back(3.343529346636551e+00);
	A.push_back(-1.754916733002277e+00);
	A.push_back(3.766990822219589e-01);
	d.push_back(0);
	d.push_back(0);
	d.push_back(0);
	d.push_back(0);
}
FilterButterBand_24k_300_3000 :: FilterButterBand_24k_300_3000 ( ) { B . push_back ( 7.980142011325120e-02 ) ; B . push_back ( 0.000000000000000e+00 ) ; B . push_back ( -1.596028402265024e-01 ) ; B . push_back ( 0.000000000000000e+00 ) ; B . push_back ( 7.980142011325120e-02 ) ; A . push_back ( 1.000000000000000e+00 ) ; A . push_back ( -2.962985985422413e+00 ) ; A . push_back ( 3.343529346636551e+00 ) ; A . push_back ( -1.754916733002277e+00 ) ; A . push_back ( 3.766990822219589e-01 ) ; d . push_back ( 0 ) ; d . push_back ( 0 ) ; d . push_back ( 0 ) ; d . push_back ( 0 ) ; }
4th-order Butterworth bandpass
300 Hz to 3000 Hz @ 24.4140625 kHz
Create with MATLAB like so:
4th - order Butterworth bandpass 300 Hz to 3000 Hz @ 24 . 4140625 kHz Create with MATLAB like so :