Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Bazaar/STEM4U: Added Butterworth filter
Bazaar/STEM4U: Added Butterworth filter [message #55810] Thu, 17 December 2020 08:13 Go to next message
koldo is currently offline  koldo
Messages: 3268
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 #55868 is a reply to message #55810] Thu, 24 December 2020 13:47 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Added ButterLowPass(), ButterHighPass() and ButterBandStop(), similar to Matlab butter() functions.

Best regards
Iñaki
Re: Bazaar/STEM4U: Added Butterworth filter [message #56317 is a reply to message #55868] Sat, 20 February 2021 17:32 Go to previous message
mirek is currently offline  mirek
Messages: 13442
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);
Previous Topic: Bazaar svn now read-only
Next Topic: NetProxy package. (HTTP/SOCKS4/4a/5 with BIND support) encapsulation for U++
Goto Forum:
  


Current Time: Thu Oct 21 08:21:38 CEST 2021

Total time taken to generate the page: 0.00929 seconds