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

Home » Public Forums » archive » Re: Complications with variance using FFTs
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: Complications with variance using FFTs [message #40161 is a reply to message #40143] Fri, 16 July 2004 14:21 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
olde_english33@hotmail.com (Eric) writes:

> First I computed the FFT of a recorded time series. I then computed
> the spectrum of this time series to keep the amplitudes of the
> original data. I then wanted to tie in a random phase because I want
> to give variables the same kind of shape when I inverse transform.
> Here is a sample of my code:
...
> My dilemma is that the average sample variances of the generated time
> series ddd1 and ddd2 are nowhere close to the average sample variance
> of the orginal time series xf1 and xf2. A colleague and I have
> narrowed it down to the fact that we are multiplying the spectrum by a
> random phase which is throwing off the variance but I don't know how
> to counteract this problem. Can anyone help???


Greetings, it's hard to comment, since your code snippets don't
actually connect to each other, but I can ask some probing questions.

Have you considered that for a pure real signal, the negative
frequency components should actually be multiplied by exp(-phi)?

Did you check that the magnitude of the Fourier components was
preserved? And the corrolary, are you sure that IMAG is purely
imaginary and doesn't have a real component?

Good luck,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI: auto_wid_mng
Next Topic: Re: Keyboard Shortcuts

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

Current Time: Thu Oct 09 20:30:24 PDT 2025

Total time taken to generate the page: 0.00537 seconds