Re: Interpretation of FFT phase



François Bouffard wrote:
>
>
>> The angle is arctan(imag(y)./real(y)). In the case of your y,
the
>> imag
>> part looks to be numerical junk (eg. if fft has some roundoff
>> error).
>
> Well, the signal is a sine wave: its spectrum is zero almost
> everywhere (except for two spectral bins). The phase of zero is in
> fact undetermined... The output of angle is thus random here
> (because
> of numerical precision limitations on the real and imaginary values
> of the zero-valued bins), and unwrap(angle) is simply a random
> walk.
>
> François

Phase calculation will always return an angle between 0 and 2*pi (or
-pi and pi). So the stunt I use is to check if both real AND
imaginary parts of each spectral sample is less than a small
threshold, if so I set the output phase to a daft angle (e.g. 5*pi)
or even NaN, so that it can be detected post processing. Don't be
tempted just to set it to zero as this is of course a possible valid
phase measurement.

Regards

Dave Robinson
.



Relevant Pages

  • Re: Discovery Landing - Charred Sides?
    ... On entry, they fly a zero angle of sideslip, well, what the On-Board ... Its of the other side of the orbiter: ...
    (sci.space.shuttle)
  • Re: OT: FOAK Windmill Boat/Cart
    ... rational reference for angle of attack. ... lift is some positive angle of a few degrees. ... It is good for any wing which is set to produce zero lift, ...
    (uk.rec.motorcycles)
  • Re: GPS GR Correction Myth.
    ... Nor does it produce an ellipse. ... M is greater than a right angle, ... you forgot that the force goes to zero at zero displacement then ... of 1000 to fit the screen, I could easily go to 100,000,000 pts if I ...
    (sci.physics.relativity)
  • Re: Sorting 2 colums..how?
    ... uses a distance and an angle from a given line from the zero point. ... the same way longitude is used on earth, the prime meridian is the zero ... if you use the north pole as ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Interpretation of FFT phase
    ... > part looks to be numerical junk (eg. if fft has some roundoff ... everywhere (except for two spectral bins). ... The output of angle is thus random here (because ... and unwrapis simply a random walk. ...
    (comp.soft-sys.matlab)