Mercurial > hg > x
comparison WindowFunctions.h @ 1:6422640a802f
first upload
author | Wen X <xue.wen@elec.qmul.ac.uk> |
---|---|
date | Tue, 05 Oct 2010 10:45:57 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:9b9f21935f24 | 1:6422640a802f |
---|---|
1 #ifndef WindowFunctionsH | |
2 #define WindowFunctionsH | |
3 | |
4 /* | |
5 WindowFunctions.cpp - implements a few common window functions. | |
6 */ | |
7 | |
8 enum WindowType | |
9 { | |
10 wtRectangle, | |
11 wtTriangular, | |
12 wtHamming, | |
13 wtBlackman, | |
14 wtGaussian, | |
15 wtKaiser, | |
16 wtHalfCosine, | |
17 wtHann, | |
18 wtHannSqr, | |
19 wtHann3sqrt | |
20 }; | |
21 | |
22 //--window function computation routines------------------------------------- | |
23 void FillWindow(double* newwindow, WindowType wt, int Count, int* ips=0, double* dps=0); | |
24 double* NewWindow(WindowType wt, int Count, int* ips=0, double* dps=0, double* newwindow=0); | |
25 double* NewWindow8(WindowType wt, int Count, int* ips=0, double* dps=0, double* newwindow=0); | |
26 double* NewdWindow(WindowType wt, int Count, int* ips=0, double* dps=0, double* newdwindow=0); | |
27 double* NewddWindow(WindowType wt, int Count, int* ips=0, double* dps=0, double* newddwindow=0); | |
28 double* NewdddWindow(WindowType wt, int Count, int* ips=0, double* dps=0, double* newdddwindow=0); | |
29 | |
30 //--other functions---------------------------------------------------------- | |
31 void windowspec(WindowType wt, int N, int* M, double* c, double* iH2, double* d=0); | |
32 | |
33 #endif |