Assuming that I convert a vector in time domain to frequency domain in C++ using Eigen's FFT. What FFT gives in return is a vector of complex numbers. My question is that how can I filter this (output) vector for some specific frequency and get the amplitude of that frequency.
vector<float> Tdomain(N);
vector<std::complex<float> > Fdomain;
Eigen::FFT<float> fft;
fft.fwd(Fdomain,Tdomain);
Or how can I even know if the given vector (the frequency domain) contains a specific frequency? This procedure seems to be more straightforward and visual in MATLAB, but how I can do it in C++?
Thanks in advance.