Re: Confused by FFTW output
From: Steven G. Johnson (stevenj_at_alum.mit.edu)
Date: 03/17/05
- Next message: Ray Koopman: "Re: Preconditioning and weighted least squares"
- Previous message: David W. Cantrell: "Re: Flexible Floating-Point Standard Proposal (was: Decimal ... JOSS)"
- In reply to: Martin Brown: "Re: Confused by FFTW output"
- Next in thread: Tom: "Re: Confused by FFTW output"
- Reply: Tom: "Re: Confused by FFTW output"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Mar 2005 19:23:12 -0500
Martin Brown wrote:
> Yes. Your final answer is f'(j) = f(j).(-1)^j
>
> The true phase zero or centre for the transform is n/2 cells.
> Correct the coeficients by abs() in FFT space and then invert the
> transform and you will see what I mean.
The sign oscillations are indeed caused by the fact that he centered his
Gaussian at n/2 rather than at 0 (a shift in time domain corresponds to
a linear phase in frequency domain).
However, his magnitudes are still going to be off because of a failure
in his basic assumption: the DFT of a Gaussian is not a Gaussian. His
"analytic" solution is wrong.
Steven
- Next message: Ray Koopman: "Re: Preconditioning and weighted least squares"
- Previous message: David W. Cantrell: "Re: Flexible Floating-Point Standard Proposal (was: Decimal ... JOSS)"
- In reply to: Martin Brown: "Re: Confused by FFTW output"
- Next in thread: Tom: "Re: Confused by FFTW output"
- Reply: Tom: "Re: Confused by FFTW output"
- Messages sorted by: [ date ] [ thread ]