]> git.rkrishnan.org Git - dttsp.git/blob - jDttSP/window.h
Initial revision
[dttsp.git] / jDttSP / window.h
1 /* window.h
2
3 This file is part of a program that implements a Software-Defined Radio.
4
5 Copyright (C) 2004 by Frank Brickle, AB2KT and Bob McGwier, N4HY
6 Implemented from code by Bill Schottstaedt of Snd Editor at CCRMA
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21
22 The authors can be reached by email at
23
24 ab2kt@arrl.net
25 or
26 rwmcgwier@comcast.net
27
28 or by paper mail at
29
30 The DTTS Microwave Society
31 6 Kathleen Place
32 Bridgewater, NJ 08807
33 */
34
35 #ifndef _window_h
36 #define _window_h
37
38 #include <stdlib.h>
39 #include <stdio.h>
40 #include <ctype.h>
41 #include <string.h>
42 #include <math.h>
43
44 /* #define RECTANGULAR_WINDOW    1
45 #define HANNING_WINDOW           2
46 #define WELCH_WINDOW             3
47 #define PARZEN_WINDOW            4
48 #define BARTLETT_WINDOW          5
49 #define HAMMING_WINDOW           6
50 #define BLACKMAN2_WINDOW         7
51 #define BLACKMAN3_WINDOW         8
52 #define BLACKMAN4_WINDOW         9
53 #define EXPONENTIAL_WINDOW      10
54 #define RIEMANN_WINDOW          11 */
55
56 typedef enum _windowtype {
57   RECTANGULAR_WINDOW,
58   HANNING_WINDOW,
59   WELCH_WINDOW,
60   PARZEN_WINDOW,
61   BARTLETT_WINDOW,
62   HAMMING_WINDOW,
63   BLACKMAN2_WINDOW,
64   BLACKMAN3_WINDOW,
65   BLACKMAN4_WINDOW,
66   EXPONENTIAL_WINDOW,
67   RIEMANN_WINDOW,
68   BLACKMANHARRIS_WINDOW,
69 } Windowtype;
70
71 extern double *makewindow(Windowtype type, int size, double *window);
72 //extern char *window_name(int n);
73 extern double sqr(double x);
74
75 #endif