Mercurial > hg > libxtract
comparison src/window.c @ 154:826eb46b2f91
fixed Linux bugs
author | Jamie Bullock <jamie@jamiebullock.com> |
---|---|
date | Thu, 10 Jan 2013 22:41:03 +0000 |
parents | 9283aaf1ffb8 |
children |
comparison
equal
deleted
inserted
replaced
153:f2e4ac22a437 | 154:826eb46b2f91 |
---|---|
22 */ | 22 */ |
23 | 23 |
24 /* window.c: defines window generation functions (formulae courtesy of Wikipedia (http://en.wikipedia.org/wiki/Window_function) */ | 24 /* window.c: defines window generation functions (formulae courtesy of Wikipedia (http://en.wikipedia.org/wiki/Window_function) */ |
25 | 25 |
26 #include <math.h> | 26 #include <math.h> |
27 | |
28 #ifndef M_PI | |
29 #define M_PI 3.14159265358979323846264338327 | |
30 #endif | |
27 | 31 |
28 #include "xtract_window_private.h" | 32 #include "xtract_window_private.h" |
29 | 33 |
30 void gauss(double *window, const int N, const double sd) | 34 void gauss(double *window, const int N, const double sd) |
31 { | 35 { |