ESP-IDF Firmware
Firmware architecture and call graph
Loading...
Searching...
No Matches
dsps_wind_blackman.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void dsps_wind_blackman_f32 (float *window, int len)
 Blackman window.

Function Documentation

◆ dsps_wind_blackman_f32()

void dsps_wind_blackman_f32 ( float * window,
int len )

Blackman window.

The function generates Blackman window for plpha = 0.16.

Parameters
windowbuffer to store window array.
lenlength of the window array

Definition at line 19 of file dsps_wind_blackman_f32.c.

20{
21 const float a0 = 0.42;
22 const float a1 = 0.5;
23 const float a2 = 0.08;
24
25 float len_mult = 1 / (float)(len - 1);
26 for (int i = 0; i < len; i++) {
27 window[i] = a0 - a1 * cosf(i * 2 * M_PI * len_mult) + a2 * cosf(i * 4 * M_PI * len_mult);
28 }
29}
#define M_PI
Definition esp_err.h:26

References M_PI.

Referenced by app_main().

Here is the caller graph for this function: