comparison src/xtract_window_private.h @ 146:baaa9d8b4d10

switched from single to double precision througout. closes #9
author Jamie Bullock <jamie@jamiebullock.com>
date Wed, 09 Jan 2013 12:45:29 +0000
parents e4f704649c50
children
comparison
equal deleted inserted replaced
145:2663eac093a5 146:baaa9d8b4d10
30 * \param *window a pointer to an array to contain the window data 30 * \param *window a pointer to an array to contain the window data
31 * \param N the number of elements in the array pointed to by *window 31 * \param N the number of elements in the array pointed to by *window
32 * \param sd the standard deviation of the "distribution" represented by the Gaussian curve. The higher the value of sd, the wider the curve. Generally sd <= 0.5 32 * \param sd the standard deviation of the "distribution" represented by the Gaussian curve. The higher the value of sd, the wider the curve. Generally sd <= 0.5
33 * 33 *
34 */ 34 */
35 void gauss(float *window, const int N, const float sd); 35 void gauss(double *window, const int N, const double sd);
36 36
37 /** \brief generate a Hamming window 37 /** \brief generate a Hamming window
38 * 38 *
39 * \param *window a pointer to an array to contain the window data 39 * \param *window a pointer to an array to contain the window data
40 * \param N the number of elements in the array pointed to by *window 40 * \param N the number of elements in the array pointed to by *window
41 * 41 *
42 */ 42 */
43 void hamming(float *window, const int N); 43 void hamming(double *window, const int N);
44 44
45 /** \brief generate a Hann window 45 /** \brief generate a Hann window
46 * 46 *
47 * \param *window a pointer to an array to contain the window data 47 * \param *window a pointer to an array to contain the window data
48 * \param N the number of elements in the array pointed to by *window 48 * \param N the number of elements in the array pointed to by *window
49 * 49 *
50 */ 50 */
51 void hann(float *window, const int N); 51 void hann(double *window, const int N);
52 52
53 /** \brief generate a Bartlett window 53 /** \brief generate a Bartlett window
54 * 54 *
55 * \param *window a pointer to an array to contain the window data 55 * \param *window a pointer to an array to contain the window data
56 * \param N the number of elements in the array pointed to by *window 56 * \param N the number of elements in the array pointed to by *window
57 * 57 *
58 */ 58 */
59 void bartlett(float *window, const int N); 59 void bartlett(double *window, const int N);
60 60
61 /** \brief generate a Triangular window 61 /** \brief generate a Triangular window
62 * 62 *
63 * \param *window a pointer to an array to contain the window data 63 * \param *window a pointer to an array to contain the window data
64 * \param N the number of elements in the array pointed to by *window 64 * \param N the number of elements in the array pointed to by *window
65 * 65 *
66 */ 66 */
67 void triangular(float *window, const int N); 67 void triangular(double *window, const int N);
68 68
69 /** \brief generate a Bartlett-Hann window 69 /** \brief generate a Bartlett-Hann window
70 * 70 *
71 * \param *window a pointer to an array to contain the window data 71 * \param *window a pointer to an array to contain the window data
72 * \param N the number of elements in the array pointed to by *window 72 * \param N the number of elements in the array pointed to by *window
73 * 73 *
74 */ 74 */
75 void bartlett_hann(float *window, const int N); 75 void bartlett_hann(double *window, const int N);
76 76
77 /** \brief generate a Blackman window 77 /** \brief generate a Blackman window
78 * 78 *
79 * \param *window a pointer to an array to contain the window data 79 * \param *window a pointer to an array to contain the window data
80 * \param N the number of elements in the array pointed to by *window 80 * \param N the number of elements in the array pointed to by *window
81 * 81 *
82 */ 82 */
83 void blackman(float *window, const int N); 83 void blackman(double *window, const int N);
84 84
85 /** \brief generate a Kaiser window 85 /** \brief generate a Kaiser window
86 * 86 *
87 * \param *window a pointer to an array to contain the window data 87 * \param *window a pointer to an array to contain the window data
88 * \param N the number of elements in the array pointed to by *window 88 * \param N the number of elements in the array pointed to by *window
89 * \param alpha The larger the value of |alpha|, the narrower the window becomes 89 * \param alpha The larger the value of |alpha|, the narrower the window becomes
90 * 90 *
91 */ 91 */
92 void kaiser(float *window, const int N, const float alpha); 92 void kaiser(double *window, const int N, const double alpha);
93 93
94 /** \brief generate a Blackman-Harris window 94 /** \brief generate a Blackman-Harris window
95 * 95 *
96 * \param *window a pointer to an array to contain the window data 96 * \param *window a pointer to an array to contain the window data
97 * \param N the number of elements in the array pointed to by *window 97 * \param N the number of elements in the array pointed to by *window
98 * 98 *
99 */ 99 */
100 void blackman_harris(float *window, const int N); 100 void blackman_harris(double *window, const int N);
101 101