scicpp::signal::fft

Defined in header <scicpp/signal.hpp>

Discrete Fourier transform of real or complex sequence.


template<typename T>
std::vector<std::complex<T>> fft(const std::vector<std::complex<T>> &x)

Performs the FFT of a std::vector of complex numbers.


template<typename T>
std::vector<std::complex<T>> fft(const std::vector<T> &x)

Performs the FFT of a std::vector of real numbers.

You may want to consider using rfft.