Which NumPy function is used to calculate the discrete Fourier transform (DFT)?
Correct answer
A. np.fft.fft()
18 views
A. np.fft.fft()
18 views
np.fft.fft() computes the one-dimensional discrete Fourier transform. ifft() is the inverse, and rfft()/irfft() are faster versions for real-valued input.
The FFT converts a signal from the time domain to the frequency domain.
For more solved questions like this one, see Data Science MCQs on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.