|
EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
|
The Bartlett triangular 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 Bartlett function. | |
The Bartlett triangular window.
Definition at line 145 of file WindowFunctions.hpp.
|
staticnoexcept |
Maps the index into the Bartlett function.
For a window of size \( M \), let \( N = M - 1 \).
\[ w[n] = \frac{2}{N} \left( \frac{N}{2} - \left| n - \frac{N}{2} \right| \right) \]
for index \( n \).
The endpoints are zero and the centre approaches one. For even window sizes, the exact value one does not occur at an integer index.
| index | The index within the window. |
| size | The size of the window. |
Definition at line 53 of file WindowFunctions.cpp.