[SciPy-User] Is Numpy rfft returning the correct number of points?

Fabrice Silva silva at lma.cnrs-mrs.fr
Wed Feb 16 15:58:25 EST 2011


El mer., 16-02-2011 a las 20:44 +0000, Brendan Arnold escribió:
> Right, but what I was wondering about is that instead of 2048 points
> returned 2049 are returned, what is the last point?

Please read 
http://docs.scipy.org/doc/numpy/reference/routines.fft.html

and note the different handling of even and odd number of samples.
Whether n=2m or 2m+1, you have m+1 points for non negative frequencies,
i.e the ones returned when using rfft

-- 
Fabrice




More information about the SciPy-User mailing list