Defined in header <scicpp/signal.hpp>
Correlate two 1D arrays (either std::array or std::vector).
For now only the “full” mode is implemented.
T
, std::size_t N
, std::size_t M
>correlate
(const std::array<T, N> &a, const std::array<T, M> &v)¶The returned std::vector is of size a.size() + v.size() - 1
.