Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > University Math Help > Advanced Applied Math
Reply
 
Thread Tools Display Modes
  #1  
Old October 20th, 2009, 06:27 PM
Newbie
 
Join Date: Oct 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
random800 is on a distinguished road
Default relation between DFT and continuous Fourier Transform

Greetings,

I have a function with a bounded support. For simplicity, let it be \mathrm{supp} f(x) \subset (0,1). I would like to find \hat f(z):
\hat f(z) = \int_0^1 e^{-2 \pi i x z} f(x) dx.

First, I thought that DFT defined by
\hat F_k = \frac{1}{\sqrt{N}} \sum_{j=1}^N e^{-2 \pi i \frac{(j-1)(k-1)}{N}} F_j
gave the following relation
if
F_j = f\left(\frac{j-1}{N}\right)
then
\hat f(k-1) \approx \frac{\hat F_k}{\sqrt{N}}
but, apparently, I was wrong.

So, what is the relation between Fourier transform and DFT?
Reply With Quote
Advertisement
 
  #2  
Old October 21st, 2009, 12:58 AM
CaptainBlack's Avatar
Grand Panjandrum
 
Join Date: Nov 2005
Location: South of England
Posts: 11,379
Country:
Thanks: 667
Thanked 3,619 Times in 2,916 Posts
CaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond repute
Default

Quote:
Originally Posted by random800 View Post
Greetings,

I have a function with a bounded support. For simplicity, let it be \mathrm{supp} f(x) \subset (0,1). I would like to find \hat f(z):
\hat f(z) = \int_0^1 e^{-2 \pi i x z} f(x) dx.

First, I thought that DFT defined by
\hat F_k = \frac{1}{\sqrt{N}} \sum_{j=1}^N e^{-2 \pi i \frac{(j-1)(k-1)}{N}} F_j
gave the following relation
if
F_j = f\left(\frac{j-1}{N}\right)
then
\hat f(k-1) \approx \frac{\hat F_k}{\sqrt{N}}
but, apparently, I was wrong.

So, what is the relation between Fourier transform and DFT?
In what way do you think this is wrong?

There are two possibilities: the normalisation, that only the first \lfloor N/2 \rfloor points are valid.

Or is the problem something else?

(you will find the equations are simpler if you use indices running from 0 to N-1)

You may also find it advantageous to use an interval 0-2 for x in the DFT to capture the spectral influence of the discontinuities better - if that makes any sense (consider the case where f(x)=1 for x in (0,1) and 0 otherwise).

CB
__________________
Truth does not change because it is, or is not, believed by a majority of the people.

Giordano Bruno

Last edited by CaptainBlack; October 21st, 2009 at 01:27 AM.
Reply With Quote
  #3  
Old October 21st, 2009, 09:46 AM
Newbie
 
Join Date: Oct 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
random800 is on a distinguished road
Default

thank you, CaptainBlack, for your reply.

Quote:
There are two possibilities: the normalisation, that only the first points are valid.
Yes, your are right, only the first half of points were valid. Is the following relation correct?

\hat F_k \approx \left\{\begin{array}{ll}\sqrt N \hat f(k-1) & \mbox{ if } 1 \leq k \leq \lfloor N/2 \rfloor \\\sqrt N \hat f(k-1-N) & \mbox{ if } \lfloor N/2 \rfloor < k \leq N\end{array}\right.

Do you know a good source to read about this thing? (I am intrested in the derivation of this)

Quote:
(you will find the equations are simpler if you use indices running from 0 to N-1)
Probably, you are right here too, but I have to work with the given formulas, it is not my initiative

Quote:
You may also find it advantageous to use an interval 0-2 for x in the DFT to capture the spectral influence of the discontinuities better - if that makes any sense (consider the case where f(x)=1 for x in (0,1) and 0 otherwise).
Well, in my case all functions are smooth on (-\infty, +\infty) and they have at least two derivatives.
Reply With Quote
  #4  
Old October 21st, 2009, 10:49 AM
CaptainBlack's Avatar
Grand Panjandrum
 
Join Date: Nov 2005
Location: South of England
Posts: 11,379
Country:
Thanks: 667
Thanked 3,619 Times in 2,916 Posts
CaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond repute
Default

Quote:
Originally Posted by random800 View Post
thank you, CaptainBlack, for your reply.

Yes, your are right, only the first half of points were valid. Is the following relation correct?

\hat F_k \approx \left\{\begin{array}{ll}
\sqrt N \hat f(k-1) & \mbox{ if } 1 \leq k \leq \lfloor N/2 \rfloor \\
\sqrt N \hat f(k-1-N) & \mbox{ if } \lfloor N/2 \rfloor < k \leq N
\end{array}\right.
The top half of the DFT is the image of the negative frequency half of the spectrum

Quote:
Do you know a good source to read about this thing? (I am intrested in the derivation of this)
virtually any book on signal processing (or digital signal processing), but they will all use zero base array indexing (except for titles that have MATLAB in them anyway.

Quote:
Probably, you are right here too, but I have to work with the given formulas, it is not my initiative

Well, in my case all functions are smooth on (-\infty, +\infty) and they have at least two derivatives.
It is still worth putting the zeros in, since the DFT is periodic, and the spectrum of you signal is probably not of finite bandwidth, though it may decay fast enough to get away with not padding there is no guarantee.

CB
__________________
Truth does not change because it is, or is not, believed by a majority of the people.

Giordano Bruno
Reply With Quote
The following users thank CaptainBlack for this useful post:
Donate to MHF
  #5  
Old October 21st, 2009, 11:51 AM
Newbie
 
Join Date: Oct 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
random800 is on a distinguished road
Default

Thanks for the help!
Reply With Quote
Reply

Tags
dft, fourier, relation, transform

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 07:45 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.