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

Matthieu Brucher matthieu.brucher at gmail.com
Wed Feb 16 15:57:51 EST 2011


It's the amplitude at fs/2 (it's a real value).

2011/2/16 Brendan Arnold <brendanarnold at gmail.com>

> Right, but what I was wondering about is that instead of 2048 points
> returned 2049 are returned, what is the last point?
>
> Brendan
>
>
>
> On 16 February 2011 20:33, Matthieu Brucher <matthieu.brucher at gmail.com>
> wrote:
> > Hi,
> >
> > Yes, it is correct. When doing a real FFT, you have 4096 points, but the
> > values 1:2048 are conjugated with 2049:4096, so you need only values
> 0:2049
> > to get your original signal back.
> >
> > Matthieu
> >
> > Matthieu
> >
> > 2011/2/16 Brendan Arnold <brendanarnold at gmail.com>
> >>
> >> Hi there,
> >>
> >> When I run numpy.fft.rfft on an array of length 4096, it returns an
> >> array of 2049 and not 2048. Is this right behaviour?
> >>
> >> I am using numpy 1.5.1
> >>
> >> Brendan
> >> _______________________________________________
> >> SciPy-User mailing list
> >> SciPy-User at scipy.org
> >> http://mail.scipy.org/mailman/listinfo/scipy-user
> >
> >
> >
> > --
> > Information System Engineer, Ph.D.
> > Blog: http://matt.eifelle.com
> > LinkedIn: http://www.linkedin.com/in/matthieubrucher
> >
> > _______________________________________________
> > SciPy-User mailing list
> > SciPy-User at scipy.org
> > http://mail.scipy.org/mailman/listinfo/scipy-user
> >
> >
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>



-- 
Information System Engineer, Ph.D.
Blog: http://matt.eifelle.com
LinkedIn: http://www.linkedin.com/in/matthieubrucher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20110216/2a97de1b/attachment.html>


More information about the SciPy-User mailing list