comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: nonuniform FFT
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: nonuniform FFT [message #34695 is a reply to message #34691] Mon, 07 April 2003 00:09 Go to previous message
MKatz843 is currently offline  MKatz843
Messages: 98
Registered: March 2002
Member
b_gom@hotmail.com (Brad Gom) wrote in message
> has anyone out there implemented a FFT routine that handles
> nonuniformly gridded samples?

If your samples aren't uniformly gridded, I'm not sure how you're
going to get an "FFT" to work. However, there's no reason why you
can't implement a simple (discreet) Fourier Transform minus the "fast"
part.

If you know your non-uniform x values, then for arbitrary k values you
could always Fourier transform your input array, A, like this

i = complex(1,0)
f_k = total( A * exp( i*k*x) )

That's just one Fourier component, and one dimension for x, but
scaling that is trivial.
Of course, computing the FT in this way, one component at a time,
should probably be called a SFT (Slow Fourier Transform).

Depending on your input/output needs, you may be able to implement a
DFT (Discreet Fourier Transform) using IDL's vector/matrix math and
then it can be Much faster. You have a vector of x values where you've
sampled A. You have a vector of k values where you want to know the
Fourier components. If memory serves, the outer product of those two
vectors gives a matrix which is the k*x part of exp(i * k*x). The
proper matrix multiplication by the input array A can yield your FT in
a jiffy--much faster than using a for-do loop.

MKatz843
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: how to create .exe
Next Topic: Font sizes/Screen vs. Postcript/Contour dropping lables

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 05:47:54 PDT 2025

Total time taken to generate the page: 0.80384 seconds