Discussion:
[Numpy-discussion] Why np.fft.rfftfreq only returns up to Nyqvist?
Matti Viljamaa
2016-08-31 12:14:30 UTC
Permalink
What’s the reasonability of np.fft.rfftfreq returning frequencies only up to Nyquist, rather than for the full sample rate?
Robert Kern
2016-08-31 12:22:28 UTC
Permalink
What’s the reasonability of np.fft.rfftfreq returning frequencies only up
to Nyquist, rather than for the full sample rate?

The answer to the question that you asked is that np.fft.rfft() only
computes values for frequencies only up to Nyquist, so np.fft.rfftfreq()
must give you the frequencies to match. I'm not sure if there is another
misunderstanding lurking that needs to be clarified.

--
Robert Kern

Loading...