From c277634b13117e721e43f34a09cafb93c725fa3f Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Wed, 9 Jan 2013 12:45:29 +0000 Subject: switched from single to double precision througout. closes #9 --- src/xtract_window_private.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/xtract_window_private.h') diff --git a/src/xtract_window_private.h b/src/xtract_window_private.h index 609010b..5708161 100644 --- a/src/xtract_window_private.h +++ b/src/xtract_window_private.h @@ -32,7 +32,7 @@ * \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 * */ -void gauss(float *window, const int N, const float sd); +void gauss(double *window, const int N, const double sd); /** \brief generate a Hamming window * @@ -40,7 +40,7 @@ void gauss(float *window, const int N, const float sd); * \param N the number of elements in the array pointed to by *window * */ -void hamming(float *window, const int N); +void hamming(double *window, const int N); /** \brief generate a Hann window * @@ -48,7 +48,7 @@ void hamming(float *window, const int N); * \param N the number of elements in the array pointed to by *window * */ -void hann(float *window, const int N); +void hann(double *window, const int N); /** \brief generate a Bartlett window * @@ -56,7 +56,7 @@ void hann(float *window, const int N); * \param N the number of elements in the array pointed to by *window * */ -void bartlett(float *window, const int N); +void bartlett(double *window, const int N); /** \brief generate a Triangular window * @@ -64,7 +64,7 @@ void bartlett(float *window, const int N); * \param N the number of elements in the array pointed to by *window * */ -void triangular(float *window, const int N); +void triangular(double *window, const int N); /** \brief generate a Bartlett-Hann window * @@ -72,7 +72,7 @@ void triangular(float *window, const int N); * \param N the number of elements in the array pointed to by *window * */ -void bartlett_hann(float *window, const int N); +void bartlett_hann(double *window, const int N); /** \brief generate a Blackman window * @@ -80,7 +80,7 @@ void bartlett_hann(float *window, const int N); * \param N the number of elements in the array pointed to by *window * */ -void blackman(float *window, const int N); +void blackman(double *window, const int N); /** \brief generate a Kaiser window * @@ -89,7 +89,7 @@ void blackman(float *window, const int N); * \param alpha The larger the value of |alpha|, the narrower the window becomes * */ -void kaiser(float *window, const int N, const float alpha); +void kaiser(double *window, const int N, const double alpha); /** \brief generate a Blackman-Harris window * @@ -97,5 +97,5 @@ void kaiser(float *window, const int N, const float alpha); * \param N the number of elements in the array pointed to by *window * */ -void blackman_harris(float *window, const int N); +void blackman_harris(double *window, const int N); -- cgit v1.2.3