FastLED 3.9.15
Loading...
Searching...
No Matches

◆ _generate_guassian()

void _generate_guassian ( kiss_fft_scalar window[],
int N )

Definition at line 41 of file cq_kernel.c.

41 {
42 float sigma = 0.5; // makes a window accurate to -30dB from peak, but smaller sigma is more accurate
43 for(int i = 0; i < N; i++){
44 #ifdef FIXED_POINT // If fixed_point, represent window with integers
45 window[i] = SAMP_MAX*exp(-0.5*pow((i-N/2.0)/(sigma*N/2.0), 2));
46 #else // Else if floating point, represent window as-is
47 window[i] = exp(-0.5*pow((i-N/2.0)/(sigma*N/2.0), 2));
48 #endif
49 }
50}
#define SAMP_MAX

References kiss_fft_scalar, and SAMP_MAX.

Referenced by _generate_kernel().

+ Here is the caller graph for this function: