osdir.com
mailing list archive
Mozy Online Backup: 2GB Free. Automatic. Secure.

Subject: Re: fft output and input storage - msg#00088

List: python.numeric.general

Date: Prev Next Index Thread: Prev Next Index

>>> print FFT.fft.__doc__
fft(a, n=None, axis=-1)

Will return the n point discrete Fourier transform of a. n defaults to the
length of a. If n is larger than a, then a will be zero-padded to make up
the difference. If n is smaller than a, the first n items in a will be
used.

The packing of the result is "standard": If A = fft(a, n), then A[0]
contains the zero-frequency term, A[1:n/2+1] contains the
positive-frequency terms, and A[n/2+1:] contains the negative-frequency
terms, in order of decreasingly negative frequency. So for an 8-point
transform, the frequencies of the result are [ 0, 1, 2, 3, 4, -3, -2, -1].

This is most efficient for n a power of two. This also stores a cache of
working memory for different sizes of fft's, so you could theoretically
run into memory problems if you call this too many times with too many
different n's.
>>>

Hmph. The style guide says I should've put a blank line on the end of
that docstring. But I don't think there was a style guide then.

w

On Tue, 26 Jul 2005, Daniel Sheltraw wrote:

> Hello all
>
> Would someone please tell me how negative and positive
> frequencies are
> stored in the output of the Numerical Python fft?
>
> Cheers,
> Daniel
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
>


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

fft output and input storage

Hello all Would someone please tell me how negative and positive frequencies are stored in the output of the Numerical Python fft? Cheers, Daniel ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

Next Message by Date: click to view message preview

Re: convolve

Le Mardi 26 Juillet 2005 10:58, René Bastian a écrit : > Hello, > > in the actual form > > convolve(a,b)==convolve(b,a)[::-1] > > but following the mathematics, > one should obtain > > convolve(a,b)==convolve(b,a) > > can anyone explain me the reason ? I think the reasons are the modes other than FULL and the re-use of "correlate" Are this good reasons ? > > thanks -- René Bastian http://www.musiques-rb.org/Ecchym/voiture.html ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click

Previous Message by Thread: click to view message preview

fft output and input storage

Hello all Would someone please tell me how negative and positive frequencies are stored in the output of the Numerical Python fft? Cheers, Daniel ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

Next Message by Thread: click to view message preview

"Using Python for Interactive Data Analysis" tutorial available

A tutorial that illustrates how Python can be used to analyze and visualize astronomical data (much like one can do in IDL) has been written and now is available at: http://www.scipy.org/wikis/topical_software/Tutorial While much of the focus is on astronomical data, most of it probably could serve as a general tutorial as well if sections on more advanced pyfits usage are skipped (only a few pages). There are appendices that contrast Python/numarray with IDL, I'd be happy to include the equivalent for Matlab if anyone who is familiar with both would like to write such appendices. Suggestions for improvements are welcome. Perry
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by