Signal/Geometry Processing Library (SPL) 1.1.24 |

filterDesign.hpp
Go to the documentation of this file.
1 // Copyright (c) 2011 Michael D. Adams
2 // All rights reserved.
3
4 // __START_OF_LICENSE__
5 //
6 // Copyright (c) 2015 Michael D. Adams
7 // All rights reserved.
8 //
9 // This file is part of the Signal Processing Library (SPL).
10 //
11 // This program is free software; you can redistribute it and/or
12 // modify it under the terms of the GNU General Public License as
13 // published by the Free Software Foundation; either version 3,
14 // or (at your option) any later version.
15 //
16 // This program is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 // GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public
22 // License along with this program; see the file LICENSE. If not,
23 // see <http://www.gnu.org/licenses/>.
24 //
25 // __END_OF_LICENSE__
26
32 #ifndef SPL_filterDesign_hpp
33 #define SPL_filterDesign_hpp
34
36 // Header Files.
38
39 #include <SPL/config.hpp>
40 #include <SPL/Sequence1.hpp>
41
42 namespace SPL {
43
49 // Basic Filter Design Functions.
52
68 RealSequence1 lowpassFilter(double cutoffFreq, double transWidth,
69 double maxPassbandRipple = 0.1, double minStopbandAtten = 20.0);
70
86 RealSequence1 highpassFilter(double cutoffFreq, double transWidth,
87 double maxPassbandRipple = 0.1, double minStopbandAtten = 20.0);
88
109 RealSequence1 bandpassFilter(double cutoffFreq0, double cutoffFreq1,
110 double transWidth0, double transWidth1, double maxPassbandRipple = 0.1,
111 double minStopbandAtten = 20.0);
112
115
120 }
121
122 #endif
SPL::bandpassFilter
RealSequence1 bandpassFilter(double cutoffFreq0, double cutoffFreq1, double transWidth0, double transWidth1, double maxPassbandRipple=0.1, double minStopbandAtten=20.0)
Design a zero-phase FIR bandpass filter.
Definition: filterDesign.cpp:171
SPL
Definition: Arcball.hpp:48
SPL::RealSequence1
Sequence1< double > RealSequence1
Real sequence.
Definition: Sequence1.hpp:1424
SPL::highpassFilter
RealSequence1 highpassFilter(double cutoffFreq, double transWidth, double maxPassbandRipple=0.1, double minStopbandAtten=20.0)
Design a zero-phase FIR highpass filter.
Definition: filterDesign.cpp:160
Sequence1.hpp
This file contains code for the Sequence1 template class.
SPL::lowpassFilter
RealSequence1 lowpassFilter(double cutoffFreq, double transWidth, double maxPassbandRipple=0.1, double minStopbandAtten=20.0)
Design a zero-phase FIR lowpass filter.
Definition: filterDesign.cpp:130