[Numpy-discussion] Why np.fft.rfftfreq only returns up to Nyqvist?

Robert Kern robert.kern at gmail.com
Wed Aug 31 08:22:28 EDT 2016


On Wed, Aug 31, 2016 at 1:14 PM, Matti Viljamaa <mviljamaa at kapsi.fi> wrote:
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160831/9cf3d20a/attachment.html>


More information about the NumPy-Discussion mailing list