|
EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
|
The minimum four-term Blackman-Harris cosine-sum 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 Blackman-Harris function. | |
The minimum four-term Blackman-Harris cosine-sum window.
Definition at line 213 of file WindowFunctions.hpp.
|
staticnoexcept |
Maps the index into the Blackman-Harris function.
For a window of size \( M \), let \( N = M - 1 \).
\[ w[n] = a_0 - a_1\cos\left(\frac{2\pi n}{N}\right) + a_2\cos\left(\frac{4\pi n}{N}\right) - a_3\cos\left(\frac{6\pi n}{N}\right) \]
where
\[ a_0 = 0.35875,\quad a_1 = 0.48829,\quad a_2 = 0.14128,\quad a_3 = 0.01168. \]
for index \( n \).
| index | The index within the window. |
| size | The size of the window. |
Definition at line 77 of file WindowFunctions.cpp.