/* Author: Max Rupplin — MEARVK LLC — 2026 */ #ifndef SLEELA_SIGNAL_PROCESSING_HPP #define SLEELA_SIGNAL_PROCESSING_HPP #include "sleela_signal_processing.h" #include #include namespace sleela { namespace signal { using Complex = SleelaSPComplex; using Status = SleelaSPStatus; /* Invalid inputs throw std::invalid_argument, numeric overflow throws * std::overflow_error, other library errors throw std::runtime_error. * std::bad_alloc from vector allocation propagates normally. */ std::vector moving_average(const std::vector& input, std::size_t window); std::vector convolve(const std::vector& input, const std::vector& kernel); std::vector hann_window(std::size_t length); Status fft(std::vector& data, bool inverse = false) noexcept; std::vector magnitude_spectrum(const std::vector& input); } // namespace signal } // namespace sleela #endif