src/filter.cpp
FilterButterBand_24k_500_5000::FilterButterBand_24k_500_5000()
{
	B.push_back(1.817437373698117e-01);
	B.push_back(0.000000000000000e+00);
	B.push_back(-3.634874747396234e-01);
	B.push_back(0.000000000000000e+00);
	B.push_back(1.817437373698117e-01);
	A.push_back(1.000000000000000e+00);
	A.push_back(-2.257597497976864e+00);
	A.push_back(1.888353169572497e+00);
	A.push_back(-8.300890337275101e-01);
	A.push_back(2.137802273649247e-01);
	d.push_back(0);
	d.push_back(0);
	d.push_back(0);
	d.push_back(0);
}
// 4th-order Butterworth bandpass
// 500 Hz to 5000 Hz @ 24.4140625 kHz
// Create with MATLAB like so:
/*
n = 4; % filter order
sr = 24414.0625;
Wn = [500 5000] * 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
500 Hz to 5000 Hz @ 24.4140625 kHz
Create with MATLAB like so.


4th - order Butterworth bandpass 500 Hz to 5000 Hz @ 24 . 4140625 kHz Create with MATLAB like so .
FilterButterBand_24k_500_5000::FilterButterBand_24k_500_5000()
{
	B.push_back(1.817437373698117e-01);
	B.push_back(0.000000000000000e+00);
	B.push_back(-3.634874747396234e-01);
	B.push_back(0.000000000000000e+00);
	B.push_back(1.817437373698117e-01);
	A.push_back(1.000000000000000e+00);
	A.push_back(-2.257597497976864e+00);
	A.push_back(1.888353169572497e+00);
	A.push_back(-8.300890337275101e-01);
	A.push_back(2.137802273649247e-01);
	d.push_back(0);
	d.push_back(0);
	d.push_back(0);
	d.push_back(0);
}
FilterButterBand_24k_500_5000 :: FilterButterBand_24k_500_5000 ( ) { B . push_back ( 1.817437373698117e-01 ) ; B . push_back ( 0.000000000000000e+00 ) ; B . push_back ( -3.634874747396234e-01 ) ; B . push_back ( 0.000000000000000e+00 ) ; B . push_back ( 1.817437373698117e-01 ) ; A . push_back ( 1.000000000000000e+00 ) ; A . push_back ( -2.257597497976864e+00 ) ; A . push_back ( 1.888353169572497e+00 ) ; A . push_back ( -8.300890337275101e-01 ) ; A . push_back ( 2.137802273649247e-01 ) ; d . push_back ( 0 ) ; d . push_back ( 0 ) ; d . push_back ( 0 ) ; d . push_back ( 0 ) ; }
4th-order Butterworth bandpass
500 Hz to 5000 Hz @ 24.4140625 kHz
Create with MATLAB like so:
4th - order Butterworth bandpass 500 Hz to 5000 Hz @ 24 . 4140625 kHz Create with MATLAB like so :