scicpp::signal::windows::bartlett

Defined in header <scicpp/signal.hpp>

Return a Bartlett window.

The Bartlett window is very similar to a triangular window, except that the end points are at zero. It is often used in signal processing for tapering a signal, without generating too much ripple in the frequency domain.


template<typename T, std::size_t M>
std::array<T, M> bartlett()

Return a std::array of size M. Requires M > 1.


template<typename T>
std::vector<T> bartlett(std::size_t M)

Return a std::vector of size M. Requires M > 1.


See also
Scipy documentation