|
EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
|
The Hann raised-cosine window. More...
#include <WindowFunctions.hpp>
Static Public Member Functions | |
| static float | operator() (std::size_t index, std::size_t size) noexcept |
| Maps the index into the Hann function. | |
The Hann raised-cosine window.
Definition at line 79 of file WindowFunctions.hpp.
|
staticnoexcept |
Maps the index into the Hann function.
For a window of size \( M \), let \( N = M - 1 \).
\[ w[n] = \frac{1}{2} \left( 1 - \cos\left(\frac{2\pi n}{N}\right) \right) \]
for index \( n \).
| index | The index within the window. |
| size | The size of the window. |
Definition at line 18 of file WindowFunctions.cpp.