Home » Developing U++ » UppHub » Bazaar/STEM4U: Added Butterworth filter
Bazaar/STEM4U: Added Butterworth filter [message #55810] |
Thu, 17 December 2020 08:13 |
|
koldo
Messages: 3394 Registered: August 2008
|
Senior Veteran |
|
|
The Butterworth IIR filter is a type of signal processing filter designed to have a frequency response as flat as possible in the passband. It is also referred to as a maximally flat magnitude filter. It was first described in 1930 by the British engineer and physicist Stephen Butterworth in his paper entitled "On the Theory of Filter Amplifiers"
These filter functions are templated and can be used with different vector types like U++ Vector<>, Eigen VectorXd and std::vector<>.
Its behaviour is equivalent to Matlab functions filter(), filtfilt() and butter().
Reference is here.
Best regards
Iñaki
|
|
|
|
Re: Bazaar/STEM4U: Added Butterworth filter [message #56317 is a reply to message #55868] |
Sat, 20 February 2021 17:32 |
|
mirek
Messages: 14016 Registered: November 2005
|
Ultimate Member |
|
|
Latest bazaar version does not compile:
C:\upp\UppHub\STEM4U\STEM4U/CrossCorrelation.h:27:3: error: use of undeclared identifier 'PostPad'
PostPad(x, M, 0.);
^
C:\upp\UppHub\STEM4U\STEM4U/CrossCorrelation.h:44:3: error: use of undeclared identifier 'PrePad'
PrePad(x, x.size() + maxlag, 0.);
^
C:\upp\UppHub\STEM4U\STEM4U/CrossCorrelation.h:45:3: error: use of undeclared identifier 'PostPad'
PostPad(x, M, 0.);
^
C:\upp\UppHub\STEM4U\STEM4U/CrossCorrelation.h:50:3: error: use of undeclared identifier 'PostPad'
PostPad(y, M, 0.);
^
C:\upp\UppHub\STEM4U\STEM4U/CrossCorrelation.h:21:2: error: no matching function for call to 'Copy'
Copy(_x, x);
|
|
|
Goto Forum:
Current Time: Thu Sep 12 01:03:00 CEST 2024
Total time taken to generate the page: 0.02612 seconds
|