1 /**************************************************************************
2  * Parks-McClellan algorithm for FIR filter design (C version)
3  *-------------------------------------------------
4  *  Copyright (c) 1995,1998  Jake Janovetz (janovetz@uiuc.edu)
5  *
6  *  This library is free software; you can redistribute it and/or
7  *  modify it under the terms of the GNU Library General Public
8  *  License as published by the Free Software Foundation; either
9  *  version 2 of the License, or (at your option) any later version.
10  *
11  *  This library is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  *  Library General Public License for more details.
15 
16  *  You should have received a copy of the GNU Library General Public
17  *  License along with this library; if not, write to the Free
18  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  *************************************************************************/
21 #ifndef __REMEZ_H__
22 #define __REMEZ_H__
23 
24 #define BANDPASS       1
25 #define DIFFERENTIATOR 2
26 #define HILBERT        3
27 
28 #define NEGATIVE       0
29 #define POSITIVE       1
30 
31 #define Pi             3.1415926535897932
32 #define Pi2            6.2831853071795865
33 
34 #define GRIDDENSITY    16
35 #define MAXITERATIONS  40
36 
37 /* Function prototype for remez() - the only function that should need be
38  * called from external code
39  */
40 void remez(double h[], int numtaps,
41            int numband, double bands[], double des[], double weight[],
42            int type);
43 
44 #endif /* __REMEZ_H__ */
45 
46