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

Home » Public Forums » archive » Re: FFT of gaussian
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: FFT of gaussian [message #74389 is a reply to message #74382] Wed, 12 January 2011 09:42 Go to previous messageGo to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Jan 12, 9:28 am, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
> In article
> < e8f1db77-67a5-491f-9671-fbd85c50a...@a10g2000vby.googlegroup s.com >,
>
>  Gray <grayliketheco...@gmail.com> wrote:
>> Hi all,
>
>> Here's something I don't really understand.  The Fourier transform of
>> a Gaussian function is another Gaussian... so why if I create a
>> Gaussian and run FFT do I not get a Gaussian?  Is it because my
>> Gaussian vector is discrete?  How can I fix this?
>
> You get the discrete transform of a discrete approximation to
> a Gaussian, which is also a discrete approximation to a Gaussian.  
>
> Try this:
>
> IDL> x = -5.0d0 + 0.1d0*dindgen(101)
> IDL> y = exp(-(x^2))                
> IDL> plot, x, y                    
> IDL> yt = fft(y)                    
> IDL> plot, shift(abs(yt),50)
>
> Don't forget, the IDL always does a full complex FFT.      
>
> Ken Bowman

Ah, the shift(abs()) helped very much! Thanks :)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: map_proj_inverse question
Next Topic: 2d min

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

Current Time: Wed Dec 03 09:17:06 PST 2025

Total time taken to generate the page: 1.84273 seconds