|
EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
|
The Hamming 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 Hamming function. | |
The Hamming raised-cosine window.
Definition at line 109 of file WindowFunctions.hpp.
|
staticnoexcept |
Maps the index into the Hamming function.
For a window of size \( M \), let \( N = M - 1 \).
\[ w[n] = \alpha - \beta\cos\left(\frac{2\pi n}{N}\right) \]
where
\[ \alpha = 0.54,\quad \beta = 1 - \alpha = 0.46. \]
for index \( n \).
| index | The index within the window. |
| size | The size of the window. |
Definition at line 30 of file WindowFunctions.cpp.