| 24 | } |
| 25 | |
| 26 | inline void hamming_function (int window_len, double *wind) |
| 27 | { |
| 28 | for (int i = 0; i < window_len; i++) |
| 29 | { |
| 30 | wind[i] = 0.54 - 0.46 * cos (2.0 * M_PI * i / window_len); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | inline void blackman_harris_function (int window_len, double *wind) |
| 35 | { |