ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/PDL-Audio/remez.h
Revision: 1.1
Committed: Tue Dec 28 01:05:16 2004 UTC (19 years, 4 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-1_1, rel-1_2, HEAD
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 /* original version found at http://www.ews.uiuc.edu/%7Ejanovetz/DSP/remez/ */
2     /* added static modifiers before most functions */
3    
4     /**************************************************************************
5     * Parks-McClellan algorithm for FIR filter design (C version)
6     *-------------------------------------------------
7     * Copyright (c) 1995,1998 Jake Janovetz (janovetz@uiuc.edu)
8     *
9     * This library is free software; you can redistribute it and/or
10     * modify it under the terms of the GNU Library General Public
11     * License as published by the Free Software Foundation; either
12     * version 2 of the License, or (at your option) any later version.
13     *
14     * This library is distributed in the hope that it will be useful,
15     * but WITHOUT ANY WARRANTY; without even the implied warranty of
16     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17     * Library General Public License for more details.
18    
19     * You should have received a copy of the GNU Library General Public
20     * License along with this library; if not, write to the Free
21     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22     *
23     *************************************************************************/
24     #ifndef __REMEZ_H__
25     #define __REMEZ_H__
26    
27     #define BANDPASS 1
28     #define DIFFERENTIATOR 2
29     #define HILBERT 3
30    
31     #define NEGATIVE 0
32     #define POSITIVE 1
33    
34     #define GRIDDENSITY 16
35     #define MAXITERATIONS 90
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