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

Home » Public Forums » archive » Re: question relating to 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: question relating to FFT [message #65372 is a reply to message #65371] Mon, 02 March 2009 15:21 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
Hu wrote:
> On Mar 2, 2:37 pm, Paolo <pgri...@gmail.com> wrote:
>> Hu wrote:
>>> Hi, there
>>> I try to use FFT function to smooth a curve (an array), and the code
>>> is like this:
>>
>>> FUNCTION FOURIER,ARRAY                             ;*****FAST FOURIER FLITER
>>>    FILTER=1.0/(1.0+DIST(152)/4.0)^2
>>>    newARRAY=FFT(FFT(ARRAY,-1)*FILTER,1)
>>>    RETURN,newARRAY
>>> END
>>
>>> when I got an array X (has 152 elements) and use this function like :
>>
>>> Y = FOURIER(X)
>>
>>> I got an result Y with 152 elements, but all the elements are  complex
>>> number, but How can I got an array filled with regular number, not
>>> complex number?
>>
>> To get real number,
>> you can take the REAL_PART or the ABS of your array.
>> But you are using a very strange filter indeed...
>>
>> Ciao,
>> Paolo
>>
>>
>>
>>> I mean, I want to use the result to calculate regression relationship
>>> with other array.
>>
>>
> Thank you ,and Why do you say it's strange? I want to denoise the
> whole curve( store as array) to make it more reasonable.

Try plot,dist(152)
Does that look like what you want?

Ciao,
Paolo
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: crazy question
Next Topic: Hide functions from other procedures

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

Current Time: Sun Oct 12 00:03:26 PDT 2025

Total time taken to generate the page: 0.63041 seconds