Home
last modified time | relevance | path

Searched refs:cos_angle (Results 1 – 1 of 1) sorted by relevance

/third_party/libsnd/tests/
Ddft_cmp.c102 { static double cos_angle [DFT_DATA_LENGTH] = { 0.0 } ; in dft_magnitude() local
109 if (cos_angle [0] == 0.0) in dft_magnitude()
111 { cos_angle [n] = cos (2.0 * M_PI * n / DFT_DATA_LENGTH) ; in dft_magnitude()
121 { real_part += data [n] * cos_angle [(k * n) % DFT_DATA_LENGTH] ; in dft_magnitude()