DSPRelated.com
Forums
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →

Zero Padding in radix 2 FFT

Started by Iqbal ●December 30, 2005
Jerry Avins wrote:
> John Monro wrote: > >> Jerry Avins wrote: >> >>> Beating a dead horse into dog food: >>> >>> John Monro wrote: >>> >>>> Jerry, >>>> Yes, on checking back before this sub-thread you did indeed say, >>>> referring to the components of the DFT: >>>> "All the integrals are the coefficients a_n and b_n in the series >>>> a_n*sin(nwt)f(t)dt + b_n*cos(nwt)f(t)dt. " >>>> This doses of course infer that the DFT and the Fourier series are >>>> related but different. >>> >>> >>> >>> >>> My sentence that you quoted also says that the integrations also >>> determine only the coefficients of the Fourier series. It seems to me >>> that makes the integrations entirely equivalent to a DFT. >> >> >> Jerry, >> It seems to me that you are maintaining that if something is >> part of a whole then it is the same as the whole. Tell me this is not >> true! > > > It is not true. > >> My contribution to this sub-thread was just this: if the coefficients >> (as obtained from the DFT output are only part of the Fourier Series >> then DFT is not the Fourier Series itself. > > > We already agreed that I didn't say it is the same, only that it (like > frequency-by-frequency integration) produces the coefficients of one. > Where is the difficulty? > > ... > > Jerry
Jerry, the difficulty was where you said: "It seems to me that makes the integrations entirely equivalent to a DFT." To my mind 'equivalent' means 'the same in all significant ways,' and the word 'entirely' strengthens this, to suggest that there are in fact no differences at all. This did seem to be at variance to what you had written elsewhere, hence my note. Regards, John
robert bristow-johnson wrote:
> John Monro wrote: > >>robert bristow-johnson wrote: >> >>>well, it isn't the same as a Fourier series of a periodic >>>continuous-time function, but the DFT most certainly is the same as the >>>Fourier series of a periodic discrete-time function. the DFT maps a >>>discrete periodic function in one domain (call it the "time domain") of >>>period N, to another discrete periodic function in the reciprocal >>>domain (call that the "frequency domain") of the same period length, N. >>> both discrete periodic functions are fully defined by N complex >>>numbers and the DFT maps the N numbers from one to the N numbers of the >>>other. >> >>While I agree that the DFT can be used to find the Fourier series, and >>that this can be done accurately under the conditions you describe,I >>don't agree that this makes the DFT the same as the Fourier series. >> >>The essential difference is that the Fourier series is a function of >>time, and the DFT isn't. > > > time, schmime! the math doesn't care if the "n" in x[n] is a function > of time, or location (say on a digital photo), or a probability density > function (in which you might be interested in the "characteristic > function"). it doesn't matter. > > what we are doing is fitting a bunch of sinusoids (expressed in complex > exponential form) to a given set of N equally spaced data points: > > N-1 > x[n] = SUM{ X[k] * exp(j*2*pi*n*k/N) } > k=0 > > where the X[k] are simply the coefficients of the N sinusoids. (here > is where the inherent periodic extension of x[n] is apparent.) then > when you solve for the N coefficients, you get > > N-1 > X[k] = (1/N) * SUM{ x[n] * exp(-j*2*pi*n*k/N) } > n=0 > > (i realize that the 1/N factor is moved from the common DFT definition. > that is simply an issue of convention where i am not following the > most common convention here. doesn't change the main point.) > > >> I know this is obvious to all concerned, but >>we are talking about definitions here, I think. > > > definitions are sometimes in the eye of the definer. whether someone > defines it this way or not, at its most fundamental, the DFT maps a > discrete infinite and periodic sequence in one domain (call it "time" > if you like) of period N to another infinite and periodic sequence in > the reciprocal domain (call it "frequency" if you like) of period N in > an invertable fashion according to the equations above (except perhaps > where the scaling factor is). > > >> As I see it the DFT >>provides the coefficients, but this set of coefficients becomes a >>Fourier series only when you attach all the appropriate cos and sin >>functions. > > > but we *do* attach it to these sinusoidal functions. i ain't dealing > with the sines and the cosines. maybe Jerry is, but i ain't. but i > would call exp(j*theta) a "sinusoidal function" of sorts. > > r b-j >
Robert, Of course I know that the independent variable does not have to be 'time,' but seeing that this is comp.dsp rather than a maths newsgroup I thought I would stick with 'time,' rather than some sort of non-specific variable. (I have trouble keeping track of arguments if they are too general.) Instead of 'time,' you can substitute 'distance' or anything else, but when I said "The essential difference is that the Fourier series is a function of time, and the DFT isn't," I meant exactly that. I have read Rune's posting as well, and it appears that neither one of you is clearly distinguishing between: 1. The cos and sin functions that are implied by the exponential form of the DFT output and 2. The cos and sin functions in the Fourier Series. In relation to (1), it should be emphasised that whereas e^(j*theta) appears in the exponential form of the DFT output, theta is the FIXED phase of the sinusoidal component. Theta is not the INSTANTANEOUS phase of the signal voltage (or luminosity or whatever) and so it is not the same as e^j(wt). This means that there is no immediate or direct relationship to the Fourier Series. The phase-angle only determines the relative magnitude of the A and B coefficients in the rectangular form of the DFT output and once determined by the DFT process, is fixed in time. So, I agree with you when you say that " I would call exp(j*theta) a "sinusoidal function" of sorts." but I want to emphasise that exp(j*theta) is a sinusoidal function of phase-angle, not of time. Regards, John
Rune Allnor wrote:
> robert bristow-johnson wrote: > >>John Monro wrote: > > >>> I know this is obvious to all concerned, but >>>we are talking about definitions here, I think. >> >>definitions are sometimes in the eye of the definer. whether someone >>defines it this way or not, at its most fundamental, the DFT maps a >>discrete infinite and periodic sequence in one domain (call it "time" >>if you like) of period N to another infinite and periodic sequence in >>the reciprocal domain (call it "frequency" if you like) of period N in >>an invertable fashion according to the equations above (except perhaps >>where the scaling factor is). > > > I have to agee with RBJ here. I prefer the formulation of the DFT as > a basis shift operator in a avector space. > > If > > x' = DFT{x} > > where x' and x are N by 1 column vectors and the apostrophe in x' > means > "the DFT of x", then the DFT can be expressed as > > x' = Wx > > where W ix an N by N matrix with elements W[n,k] = exp(-j2pi nk/N). > The inverse of W is W" where W"[n,k] = 1/N*exp(j2pi nk/N). > > No sines. No time. No nothing. Just a pair of unitary matrices. > > >>> As I see it the DFT >>>provides the coefficients, but this set of coefficients becomes a >>>Fourier series only when you attach all the appropriate cos and sin >>>functions. >> >>but we *do* attach it to these sinusoidal functions. i ain't dealing >>with the sines and the cosines. maybe Jerry is, but i ain't. but i >>would call exp(j*theta) a "sinusoidal function" of sorts. > > > Sure. Euler knew that. > > Rune >
Rune, I you and Robert make similar points and I have replied to you both in a separate posting. Regards, John
John Monro wrote:
> Jerry Avins wrote: > >> John Monro wrote: >> >>> Jerry Avins wrote: >>> >>>> Beating a dead horse into dog food: >>>> >>>> John Monro wrote: >>>> >>>>> Jerry, >>>>> Yes, on checking back before this sub-thread you did indeed >>>>> say, referring to the components of the DFT: >>>>> "All the integrals are the coefficients a_n and b_n in the series >>>>> a_n*sin(nwt)f(t)dt + b_n*cos(nwt)f(t)dt. " >>>>> This doses of course infer that the DFT and the Fourier series are >>>>> related but different. >>>> >>>> >>>> >>>> >>>> >>>> My sentence that you quoted also says that the integrations also >>>> determine only the coefficients of the Fourier series. It seems to >>>> me that makes the integrations entirely equivalent to a DFT. >>> >>> >>> >>> Jerry, >>> It seems to me that you are maintaining that if something is >>> part of a whole then it is the same as the whole. Tell me this is >>> not true! >> >> >> >> It is not true. >> >>> My contribution to this sub-thread was just this: if the >>> coefficients (as obtained from the DFT output are only part of the >>> Fourier Series then DFT is not the Fourier Series itself. >> >> >> >> We already agreed that I didn't say it is the same, only that it (like >> frequency-by-frequency integration) produces the coefficients of one. >> Where is the difficulty? >> >> ... >> >> Jerry > > > Jerry, the difficulty was where you said: > "It seems to me that makes the integrations entirely equivalent to a DFT." > > To my mind 'equivalent' means 'the same in all significant ways,' and > the word 'entirely' strengthens this, to suggest that there are in fact > no differences at all. > > This did seem to be at variance to what you had written elsewhere, hence > my note.
The DFT and the several integrations yield the same numbers (within roundoff errors). How do you think they differ? Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
John Monro wrote:

   ...

> Robert, > Of course I know that the independent variable does not have to be > 'time,' but seeing that this is comp.dsp rather than a maths newsgroup I > thought I would stick with 'time,' rather than some sort of non-specific > variable. (I have trouble keeping track of arguments if they are too > general.) Instead of 'time,' you can substitute 'distance' or anything > else, but when I said "The essential difference is that the Fourier > series is a function of time, and the DFT isn't," I meant exactly that. > > I have read Rune's posting as well, and it appears that neither one of > you is clearly distinguishing between: > 1. The cos and sin functions that are implied by the exponential form > of the DFT output and > 2. The cos and sin functions in the Fourier Series. > > In relation to (1), it should be emphasised that whereas e^(j*theta) > appears in the exponential form of the DFT output, theta is the FIXED > phase of the sinusoidal component. Theta is not the INSTANTANEOUS phase > of the signal voltage (or luminosity or whatever) and so it is not the > same as e^j(wt). This means that there is no immediate or direct > relationship to the Fourier Series. > > The phase-angle only determines the relative magnitude of the A and B > coefficients in the rectangular form of the DFT output and once > determined by the DFT process, is fixed in time. So, I agree with you > when you say that " I would call exp(j*theta) a "sinusoidal function" of > sorts." but I want to emphasise that exp(j*theta) is a sinusoidal > function of phase-angle, not of time.
That would be a compelling argument if either a DFT or an integration of sinusoid products produced equations of any sort, but in fact, both deliver only numbers. The different mindsets that lead us to to assign different meanings to the same set of numbers calculated in different ways seems like an arbitrary distinction to me. Can we agree that the procedures are numerically equivalent? Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Jerry Avins wrote:
> John Monro wrote: > >> Jerry Avins wrote: >> >>> John Monro wrote: >>> >>>> Jerry Avins wrote: >>>> >>>>> Beating a dead horse into dog food: >>>>> >>>>> John Monro wrote: >>>>> >>>>>> Jerry, >>>>>> Yes, on checking back before this sub-thread you did indeed >>>>>> say, referring to the components of the DFT: >>>>>> "All the integrals are the coefficients a_n and b_n in the series >>>>>> a_n*sin(nwt)f(t)dt + b_n*cos(nwt)f(t)dt. " >>>>>> This doses of course infer that the DFT and the Fourier series are >>>>>> related but different. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> My sentence that you quoted also says that the integrations also >>>>> determine only the coefficients of the Fourier series. It seems to >>>>> me that makes the integrations entirely equivalent to a DFT. >>>> >>>> >>>> >>>> >>>> Jerry, >>>> It seems to me that you are maintaining that if something is >>>> part of a whole then it is the same as the whole. Tell me this is >>>> not true! >>> >>> >>> >>> >>> It is not true. >>> >>>> My contribution to this sub-thread was just this: if the >>>> coefficients (as obtained from the DFT output are only part of the >>>> Fourier Series then DFT is not the Fourier Series itself. >>> >>> >>> >>> >>> We already agreed that I didn't say it is the same, only that it >>> (like frequency-by-frequency integration) produces the coefficients >>> of one. Where is the difficulty? >>> >>> ... >>> >>> Jerry >> >> >> >> Jerry, the difficulty was where you said: >> "It seems to me that makes the integrations entirely equivalent to a >> DFT." >> >> To my mind 'equivalent' means 'the same in all significant ways,' and >> the word 'entirely' strengthens this, to suggest that there are in >> fact no differences at all. >> >> This did seem to be at variance to what you had written elsewhere, >> hence my note. > > > The DFT and the several integrations yield the same numbers (within > roundoff errors). How do you think they differ? > > Jerry
Jerry, I have checked back over the quotes and the quoted quotes and the context and so on and am now not sure who said what when, so I hope I have not mis-represented your views. I see that you have made another posting further on and will respond more fully to that. Regards, John
Jerry Avins wrote:
> John Monro wrote: > > ... > >> Robert, >> Of course I know that the independent variable does not have to be >> 'time,' but seeing that this is comp.dsp rather than a maths newsgroup >> I thought I would stick with 'time,' rather than some sort of >> non-specific variable. (I have trouble keeping track of arguments if >> they are too general.) Instead of 'time,' you can substitute >> 'distance' or anything else, but when I said "The essential difference >> is that the Fourier series is a function of time, and the DFT isn't," >> I meant exactly that. >> >> I have read Rune's posting as well, and it appears that neither one of >> you is clearly distinguishing between: >> 1. The cos and sin functions that are implied by the exponential form >> of the DFT output and >> 2. The cos and sin functions in the Fourier Series. >> >> In relation to (1), it should be emphasised that whereas e^(j*theta) >> appears in the exponential form of the DFT output, theta is the FIXED >> phase of the sinusoidal component. Theta is not the INSTANTANEOUS >> phase of the signal voltage (or luminosity or whatever) and so it is >> not the same as e^j(wt). This means that there is no immediate or >> direct relationship to the Fourier Series. >> >> The phase-angle only determines the relative magnitude of the A and >> B coefficients in the rectangular form of the DFT output and once >> determined by the DFT process, is fixed in time. So, I agree with you >> when you say that " I would call exp(j*theta) a "sinusoidal function" >> of sorts." but I want to emphasise that exp(j*theta) is a sinusoidal >> function of phase-angle, not of time. > > > That would be a compelling argument if either a DFT or an integration of > sinusoid products produced equations of any sort, but in fact, both > deliver only numbers. The different mindsets that lead us to to assign > different meanings to the same set of numbers calculated in different > ways seems like an arbitrary distinction to me. Can we agree that the > procedures are numerically equivalent? > > Jerry
Jerry, I readily agree that those two methods of finding the coefficients of the Fourier Series are numerically equivalent, but note that I have not entered into that discussion. The point I was making was a minor one and possibly so minor that undue significance was read into it. My point was that it is not correct to say that the DFT is the same thing as the Fourier Series, my reason being that the coefficients of the series and the complete expression of the series are not the same thing. That's all. Robert and Rune saw some significance in the fact that the exponential form of the DFT was sinusoidal, and I dealt with that in the posting above. I am disappointed that you did not find it unconditionally compelling. (:=) You point out that the DFT, and the integration you describe, each produce only numbers, not equations. This supports my position that the DFT and the Fourier Series can not be regarded as the same thing. Jerry, I am not entirely sure what your position is on this specific point. Regards, John
robert bristow-johnson wrote:
> what we are doing is fitting a bunch of sinusoids (expressed in complex > exponential form) to a given set of N equally spaced data points: > > N-1 > x[n] = SUM{ X[k] * exp(j*2*pi*n*k/N) } > k=0 > > where the X[k] are simply the coefficients of the N sinusoids. (here > is where the inherent periodic extension of x[n] is apparent.) then > when you solve for the N coefficients, you get > > N-1 > X[k] = (1/N) * SUM{ x[n] * exp(-j*2*pi*n*k/N) } > n=0 >
Why would these equations not work equally well if the exp sinusoid were undefined or clamped to zero outside k=[0..N) ? Thus not requiring an interpretation around any infinite or periodic extent. Then, as Rune described, you would just be transforming an N element vector from one space to another. IMHO. YMMV. -- rhn A.T nicholson d.O.t C-o-M
John Monro wrote:
> robert bristow-johnson wrote: > > John Monro wrote: > > > >>robert bristow-johnson wrote: > >> > >>>well, it isn't the same as a Fourier series of a periodic > >>>continuous-time function, but the DFT most certainly is the same as the > >>>Fourier series of a periodic discrete-time function. the DFT maps a > >>>discrete periodic function in one domain (call it the "time domain") of > >>>period N, to another discrete periodic function in the reciprocal > >>>domain (call that the "frequency domain") of the same period length, N. > >>> both discrete periodic functions are fully defined by N complex > >>>numbers and the DFT maps the N numbers from one to the N numbers of the > >>>other. > >> > >>While I agree that the DFT can be used to find the Fourier series, and > >>that this can be done accurately under the conditions you describe,I > >>don't agree that this makes the DFT the same as the Fourier series. > >> > >>The essential difference is that the Fourier series is a function of > >>time, and the DFT isn't. > > > > > > time, schmime! the math doesn't care if the "n" in x[n] is a function > > of time, or location (say on a digital photo), or a probability density > > function (in which you might be interested in the "characteristic > > function"). it doesn't matter. > > > > what we are doing is fitting a bunch of sinusoids (expressed in complex > > exponential form) to a given set of N equally spaced data points: > > > > N-1 > > x[n] = SUM{ X[k] * exp(j*2*pi*n*k/N) } > > k=0 > > > > where the X[k] are simply the coefficients of the N sinusoids. (here > > is where the inherent periodic extension of x[n] is apparent.) then > > when you solve for the N coefficients, you get > > > > N-1 > > X[k] = (1/N) * SUM{ x[n] * exp(-j*2*pi*n*k/N) } > > n=0 > > > > (i realize that the 1/N factor is moved from the common DFT definition. > > that is simply an issue of convention where i am not following the > > most common convention here. doesn't change the main point.) > > > > > >> I know this is obvious to all concerned, but > >>we are talking about definitions here, I think. > > > > > > definitions are sometimes in the eye of the definer. whether someone > > defines it this way or not, at its most fundamental, the DFT maps a > > discrete infinite and periodic sequence in one domain (call it "time" > > if you like) of period N to another infinite and periodic sequence in > > the reciprocal domain (call it "frequency" if you like) of period N in > > an invertable fashion according to the equations above (except perhaps > > where the scaling factor is). > > > > > >> As I see it the DFT > >>provides the coefficients, but this set of coefficients becomes a > >>Fourier series only when you attach all the appropriate cos and sin > >>functions. > > > > > > but we *do* attach it to these sinusoidal functions. i ain't dealing > > with the sines and the cosines. maybe Jerry is, but i ain't. but i > > would call exp(j*theta) a "sinusoidal function" of sorts. > > > > r b-j > > > > Robert, > Of course I know that the independent variable does not have to be > 'time,' but seeing that this is comp.dsp rather than a maths newsgroup I > thought I would stick with 'time,' rather than some sort of non-specific > variable. (I have trouble keeping track of arguments if they are too > general.) Instead of 'time,' you can substitute 'distance' or anything > else, but when I said "The essential difference is that the Fourier > series is a function of time, and the DFT isn't," I meant exactly that.
Well, in my experience the connection between some mathemathical concept and a "physical" interpretation can some times be an obstacle, not a help, in understanding the maths. I have several times not been able to communicate what I consider very simple concepts because the audience insisted on a "physical" interpretation of the maths (or rather, the mathemathical line of reasoning), an interpretation I was neither able to, or interested in, giving. Some times the maths should not be interpreted but left as is. In my opinion, the DFT, when one has moved beyond the very basics, is one of those things.
> I have read Rune's posting as well, and it appears that neither one of > you is clearly distinguishing between: > 1. The cos and sin functions that are implied by the exponential form > of the DFT output and
I can't see why this would be important or even relevant? Euler's equations cleary state cos x = (exp(jx)+exp(+jx))/2 sin x =(exp(jx)-exp(+jx))/j2 so whatever one thinks of the DFT, it is a matter of preference if one chooses the complex exponential form or the sin+cos form. It hardly changes the result.
> 2. The cos and sin functions in the Fourier Series.
Again, why is this relevant? What is the problem with the complex exponential?
> In relation to (1), it should be emphasised that whereas e^(j*theta) > appears in the exponential form of the DFT output, theta is the FIXED > phase of the sinusoidal component. Theta is not the INSTANTANEOUS phase > of the signal voltage (or luminosity or whatever) and so it is not the > same as e^j(wt). This means that there is no immediate or direct > relationship to the Fourier Series.
I don't understand this. The spectrum X(v), in lack of an agreed-upon term, of a signal x(u) is given as X(v) = |X(v)|exp(jphi_v)*exp(jv) where v takes the role w usually has. I have separated the two exponential terms to show that there are *two* components in the phase term of the spectrun: The "frequency" v and the "phase" phi_v (qoutation marks since the usual terminology seems to be disputed here.) Now, keeping the v (or w if you like) in a separate expunential term is a matter of convention, not necessity. So I can't see what the argument about the theta emntioned above being fixed, would be based on.
> The phase-angle only determines the relative magnitude of the A and B > coefficients in the rectangular form of the DFT output and once > determined by the DFT process, is fixed in time.
I don't understand how anything in a DFT can be "fixed in time". The DFT is a representation of a finite timewindow. The FT is a representation of an infinite time window. The magnitudes and phase in the spectrum represent the whole interval, finite or infinite, and it makse no sense to discuss what a spectrum coefficient is at this or that instance in time.
> So, I agree with you > when you say that " I would call exp(j*theta) a "sinusoidal function" of > sorts." but I want to emphasise that exp(j*theta) is a sinusoidal > function of phase-angle, not of time.
I believe the exponential form in the time-frequency Fourier transform is exp(jwt), time is most certainly a parameter.
> Regards, > John
Rune
Rune Allnor wrote:
> John Monro wrote: > > robert bristow-johnson wrote: > > > John Monro wrote: > > > > > >>robert bristow-johnson wrote: > > >> > > >>>well, it isn't the same as a Fourier series of a periodic > > >>>continuous-time function, but the DFT most certainly is the same as the > > >>>Fourier series of a periodic discrete-time function. the DFT maps a > > >>>discrete periodic function in one domain (call it the "time domain") of > > >>>period N, to another discrete periodic function in the reciprocal > > >>>domain (call that the "frequency domain") of the same period length, N. > > >>> both discrete periodic functions are fully defined by N complex > > >>>numbers and the DFT maps the N numbers from one to the N numbers of the > > >>>other. > > >> > > >>While I agree that the DFT can be used to find the Fourier series, and > > >>that this can be done accurately under the conditions you describe,I > > >>don't agree that this makes the DFT the same as the Fourier series. > > >> > > >>The essential difference is that the Fourier series is a function of > > >>time, and the DFT isn't. > > > > > > > > > time, schmime! the math doesn't care if the "n" in x[n] is a function > > > of time, or location (say on a digital photo), or a probability density > > > function (in which you might be interested in the "characteristic > > > function"). it doesn't matter. > > > > > > what we are doing is fitting a bunch of sinusoids (expressed in complex > > > exponential form) to a given set of N equally spaced data points: > > > > > > N-1 > > > x[n] = SUM{ X[k] * exp(j*2*pi*n*k/N) } > > > k=0 > > > > > > where the X[k] are simply the coefficients of the N sinusoids. (here > > > is where the inherent periodic extension of x[n] is apparent.) then > > > when you solve for the N coefficients, you get > > > > > > N-1 > > > X[k] = (1/N) * SUM{ x[n] * exp(-j*2*pi*n*k/N) } > > > n=0 > > > > > > (i realize that the 1/N factor is moved from the common DFT definition. > > > that is simply an issue of convention where i am not following the > > > most common convention here. doesn't change the main point.) > > > > > > > > >> I know this is obvious to all concerned, but > > >>we are talking about definitions here, I think. > > > > > > > > > definitions are sometimes in the eye of the definer. whether someone > > > defines it this way or not, at its most fundamental, the DFT maps a > > > discrete infinite and periodic sequence in one domain (call it "time" > > > if you like) of period N to another infinite and periodic sequence in > > > the reciprocal domain (call it "frequency" if you like) of period N in > > > an invertable fashion according to the equations above (except perhaps > > > where the scaling factor is). > > > > > > > > >> As I see it the DFT > > >>provides the coefficients, but this set of coefficients becomes a > > >>Fourier series only when you attach all the appropriate cos and sin > > >>functions. > > > > > > > > > but we *do* attach it to these sinusoidal functions. i ain't dealing > > > with the sines and the cosines. maybe Jerry is, but i ain't. but i > > > would call exp(j*theta) a "sinusoidal function" of sorts. > > > > > > r b-j > > > > > > > Robert, > > Of course I know that the independent variable does not have to be > > 'time,' but seeing that this is comp.dsp rather than a maths newsgroup I > > thought I would stick with 'time,' rather than some sort of non-specific > > variable. (I have trouble keeping track of arguments if they are too > > general.) Instead of 'time,' you can substitute 'distance' or anything > > else, but when I said "The essential difference is that the Fourier > > series is a function of time, and the DFT isn't," I meant exactly that. > > Well, in my experience the connection between some mathemathical > concept and a "physical" interpretation can some times be an obstacle, > not a help, in understanding the maths. I have several times not been > able to communicate what I consider very simple concepts because > the audience insisted on a "physical" interpretation of the maths > (or rather, the mathemathical line of reasoning), an interpretation > I was neither able to, or interested in, giving. Some times the maths > should not be interpreted but left as is. In my opinion, the DFT, when > one has moved beyond the very basics, is one of those things. > > > I have read Rune's posting as well, and it appears that neither one of > > you is clearly distinguishing between: > > 1. The cos and sin functions that are implied by the exponential form > > of the DFT output and > > I can't see why this would be important or even relevant? Euler's > equations cleary state > > cos x = (exp(jx)+exp(+jx))/2 > sin x =(exp(jx)-exp(+jx))/j2 > > so whatever one thinks of the DFT, it is a matter of preference if > one chooses the complex exponential form or the sin+cos form. > It hardly changes the result. > > > 2. The cos and sin functions in the Fourier Series. > > Again, why is this relevant? What is the problem with the complex > exponential? > > > In relation to (1), it should be emphasised that whereas e^(j*theta) > > appears in the exponential form of the DFT output, theta is the FIXED > > phase of the sinusoidal component. Theta is not the INSTANTANEOUS phase > > of the signal voltage (or luminosity or whatever) and so it is not the > > same as e^j(wt). This means that there is no immediate or direct > > relationship to the Fourier Series. > > I don't understand this. The spectrum X(v), in lack of an agreed-upon > term, > of a signal x(u) is given as > > X(v) = |X(v)|exp(jphi_v)*exp(jv) > > where v takes the role w usually has. I have separated the two > exponential > terms to show that there are *two* components in the phase term of > the spectrun: The "frequency" v and the "phase" phi_v (qoutation marks > since the usual terminology seems to be disputed here.) > > Now, keeping the v (or w if you like) in a separate expunential term is > > a matter of convention, not necessity. So I can't see what the argument > > about the theta emntioned above being fixed, would be based on. > > > The phase-angle only determines the relative magnitude of the A and B > > coefficients in the rectangular form of the DFT output and once > > determined by the DFT process, is fixed in time. > > I don't understand how anything in a DFT can be "fixed in time". The > DFT is a representation of a finite timewindow. The FT is a > representation > of an infinite time window. The magnitudes and phase in the spectrum > represent the whole interval, finite or infinite, and it makse no sense > > to discuss what a spectrum coefficient is at this or that instance in > time. > > > So, I agree with you > > when you say that " I would call exp(j*theta) a "sinusoidal function" of > > sorts." but I want to emphasise that exp(j*theta) is a sinusoidal > > function of phase-angle, not of time. > > I believe the exponential form in the time-frequency Fourier transform > is exp(jwt), time is most certainly a parameter. > > > Regards, > > John > > Rune
Sorry for not including this link in the post, but here is something I wrote a couple of years ago over the same subject: http://groups.google.com/group/comp.dsp/msg/1b54613639fc81f5 I don't think I'll be able to say it much better. Except for brushing up on the orthography, which is on its usual standard. Rune