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 →

Estimating time domain peakedness from frequency domain information

Started by Ksen ●August 16, 2006
Ksen wrote:
> I have a unique problem where I need to predict the "peakedness" of the > time domain signal just by looking at the frequency transform of the > signal. > Let us call this as y1[n]<--> Y1[f] > > I.e, I have Y1[f] and would like to have an indicator on how sharp a peak > is there in y1[n](closer to a delta is better). > I cannot afford to do a IFFT. The reason being I need to do this operation > on many of these Y[f]'s, name Y1[f], Y2[f], Y3[f], etc. etc. > > What I need to do is is to make a good estimation of how peaky the y1[t], > y2[t] ...etc are, and choose the one that is the "most" peaky, i.e, has a > dominant peak! > > So, is there any way by which the frequency domain info can help us > estimate the time domain peak sharpness without doing IFFT? > Note that I dont really need to know where the peak is.. > I may or may not have multiple peaks in y[n]'s, but all I care is a > "dominant" peak in the time domain signal. > >
Interesting problem. Here's my solution: A delta pulse in the time domain creates a flat magnitude frequency response having linear phase with a slope that is related to the position of the pulse. To get a peakiness estimator, conjugate and multiply each frequency bin from -pi to pi with its previous (unconjugated) neighboring bin. Then take the sum of this complex vector. In other words, a dot product of the frequency response with the conjugated and shifted-by-1 frequency response. in matlab/octave terms: fx = fftshift( fft(x) ); peaky = fx(2:end)' * fx(1:end-1) The magnitude of this quantity indicates the signal 'peakiness' and the phase is related to the pulse position via Nfft/(2pi) I'm not sure if I'm the first to come up with this. But, if no one chimes in and provides a reference, I'd appreciate the attribution. -- Mark Borgerding 3dB Labs, Inc. Innovate. Develop. Deliver.
Mark Borgerding wrote:
> Ksen wrote: > >> I have a unique problem where I need to predict the "peakedness" of the >> time domain signal just by looking at the frequency transform of the >> signal. >> Let us call this as y1[n]<--> Y1[f] >> >> I.e, I have Y1[f] and would like to have an indicator on how sharp a peak >> is there in y1[n](closer to a delta is better). >> I cannot afford to do a IFFT. The reason being I need to do this >> operation >> on many of these Y[f]'s, name Y1[f], Y2[f], Y3[f], etc. etc. >> >> What I need to do is is to make a good estimation of how peaky the y1[t], >> y2[t] ...etc are, and choose the one that is the "most" peaky, i.e, has a >> dominant peak! >> >> So, is there any way by which the frequency domain info can help us >> estimate the time domain peak sharpness without doing IFFT? >> Note that I dont really need to know where the peak is.. >> I may or may not have multiple peaks in y[n]'s, but all I care is a >> "dominant" peak in the time domain signal. >> >> > > > Interesting problem. Here's my solution: > > A delta pulse in the time domain creates a flat magnitude frequency > response having linear phase with a slope that is related to the > position of the pulse. > > To get a peakiness estimator, conjugate and multiply each frequency bin > from -pi to pi with its previous (unconjugated) neighboring bin. Then > take the sum of this complex vector. In other words, a dot product of > the frequency response with the conjugated and shifted-by-1 frequency > response. > in matlab/octave terms: > fx = fftshift( fft(x) ); > peaky = fx(2:end)' * fx(1:end-1) > > The magnitude of this quantity indicates the signal 'peakiness' and the > phase is related to the pulse position via Nfft/(2pi) > > > I'm not sure if I'm the first to come up with this. But, if no one > chimes in and provides a reference, I'd appreciate the attribution. > > > -- Mark Borgerding > 3dB Labs, Inc. > Innovate. Develop. Deliver.
It's worth mentioning that this method's effectiveness is reduced when there is more than one peak in a transform. It would seem the degenerate case occurs when pulses are equally spaced at integer >= 2 submultiples of the transform period. -- Mark Borgerding 3dB Labs, Inc. Innovate. Develop. Deliver.

Mark Borgerding wrote:

> > A delta pulse in the time domain creates a flat magnitude frequency > response having linear phase with a slope that is related to the > position of the pulse.
First question: what is the definition of the "peakedness" ? Is it the max.peak to average ratio or something else?
> To get a peakiness estimator, conjugate and multiply each frequency bin > from -pi to pi with its previous (unconjugated) neighboring bin. Then > take the sum of this complex vector. In other words, a dot product of > the frequency response with the conjugated and shifted-by-1 frequency > response. > in matlab/octave terms: > fx = fftshift( fft(x) ); > peaky = fx(2:end)' * fx(1:end-1) > > The magnitude of this quantity indicates the signal 'peakiness' and the > phase is related to the pulse position via Nfft/(2pi)
This will work reliably only if you have one delta pulse.
> I'm not sure if I'm the first to come up with this.
Wiener Khintchine Theorem
> But, if no one > chimes in and provides a reference, I'd appreciate the attribution.
Keep digging :) Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com
Vladimir Vassilevsky wrote:
> > > Mark Borgerding wrote: > >> >> A delta pulse in the time domain creates a flat magnitude frequency >> response having linear phase with a slope that is related to the >> position of the pulse. > > > First question: what is the definition of the "peakedness" ? > Is it the max.peak to average ratio or something else?
See the OP, "how sharp a peak is there in y1[n](closer to a delta is better)."
> >> To get a peakiness estimator, conjugate and multiply each frequency >> bin from -pi to pi with its previous (unconjugated) neighboring bin. >> Then take the sum of this complex vector. In other words, a dot >> product of the frequency response with the conjugated and shifted-by-1 >> frequency response. >> in matlab/octave terms: >> fx = fftshift( fft(x) ); >> peaky = fx(2:end)' * fx(1:end-1) >> >> The magnitude of this quantity indicates the signal 'peakiness' and >> the phase is related to the pulse position via Nfft/(2pi) > > > This will work reliably only if you have one delta pulse. >
Yes, I noted this in my second post.
>> I'm not sure if I'm the first to come up with this. > > > Wiener Khintchine Theorem
I don't see how this is relevant. Perhaps you could elaborate. According to Wikipedia, "The Wiener&#4294967295;Khinchin theorem (also known as the Wiener&#4294967295;Khintchine theorem and sometimes as the Khinchin&#4294967295;Kolmogorov theorem) states that the power spectral density of a wide-sense-stationary random process is the Fourier Transform of the corresponding autocorrelation function." The method I described has nothing to do with autocorrelation nor power spectral density. Indeed, "power spectral density" indicates phase is removed. The phase response is crucial. Without phase, there is no difference between a delta pulse and white noise. -- Mark Borgerding 3dB Labs, Inc Innovate. Develop. Deliver.

Vladimir Vassilevsky wrote:

> > First question: what is the definition of the "peakedness" ?
Kinda late to be asking the first question dontcha think:} The OP I believe has something like 10 signals. One has a large peak (I don't think he explained much beyond that) the rest have no peak just flat noise. He wants to ID the one with the peak in the frequency domain. Would seem that that the Peaked Signal in the frequency domain would have a narrow or wide peak also at F0 depending on whether the time domain peak was wide or narrow. You would think this would be rather obvious by simply looking at the data so there probably is something that hasn't been revealed. -jim ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Mark Borgerding wrote:
> Vladimir Vassilevsky wrote: > > > > > > Mark Borgerding wrote: > > > >> > >> A delta pulse in the time domain creates a flat magnitude frequency > >> response having linear phase with a slope that is related to the > >> position of the pulse. > > > > > > First question: what is the definition of the "peakedness" ? > > Is it the max.peak to average ratio or something else? > > See the OP, "how sharp a peak is there in y1[n](closer to a delta is > better)." > > > > >> To get a peakiness estimator, conjugate and multiply each frequency > >> bin from -pi to pi with its previous (unconjugated) neighboring bin. > >> Then take the sum of this complex vector. In other words, a dot > >> product of the frequency response with the conjugated and shifted-by-1 > >> frequency response. > >> in matlab/octave terms: > >> fx = fftshift( fft(x) ); > >> peaky = fx(2:end)' * fx(1:end-1) > >> > >> The magnitude of this quantity indicates the signal 'peakiness' and > >> the phase is related to the pulse position via Nfft/(2pi) > > > > > > This will work reliably only if you have one delta pulse. > > > > Yes, I noted this in my second post. > > >> I'm not sure if I'm the first to come up with this. > > > > > > Wiener Khintchine Theorem > > I don't see how this is relevant. Perhaps you could elaborate. > > > According to Wikipedia, > > "The Wiener-Khinchin theorem (also known as the Wiener-Khintchine > theorem and sometimes as the Khinchin-Kolmogorov theorem) states that > the power spectral density of a wide-sense-stationary random process is > the Fourier Transform of the corresponding autocorrelation function." > > > The method I described has nothing to do with autocorrelation nor power > spectral density. Indeed, "power spectral density" indicates phase is > removed. The phase response is crucial. Without phase, there is no > difference between a delta pulse and white noise.
Computationally, the fft and ifft are the more or less the same thing. Therefore what works one way will work the other. A peak in the frequency domain implies a sinusoid in the time domain. Therefore a sinusoid in the frequency domain implies a peak in the time domain. The following is just a wild guess: Your matlab solution looks like an autocorrelation form of a sinusoid detector. It removes the "phase" from the time domain signal, since you don't care about the imaginary portion of a real signal. IMHO. YMMV. -- rhn A.T nicholson d.0.t C-o-M
Ron N. wrote:
> Mark Borgerding wrote: > >>Vladimir Vassilevsky wrote: >> >>> >>>Mark Borgerding wrote: >>> >>> >>>>A delta pulse in the time domain creates a flat magnitude frequency >>>>response having linear phase with a slope that is related to the >>>>position of the pulse. >>> >>> >>>First question: what is the definition of the "peakedness" ? >>>Is it the max.peak to average ratio or something else? >> >>See the OP, "how sharp a peak is there in y1[n](closer to a delta is >>better)." >> >> >>>>To get a peakiness estimator, conjugate and multiply each frequency >>>>bin from -pi to pi with its previous (unconjugated) neighboring bin. >>>>Then take the sum of this complex vector. In other words, a dot >>>>product of the frequency response with the conjugated and shifted-by-1 >>>>frequency response. >>>> in matlab/octave terms: >>>> fx = fftshift( fft(x) ); >>>> peaky = fx(2:end)' * fx(1:end-1) >>>> >>>>The magnitude of this quantity indicates the signal 'peakiness' and >>>>the phase is related to the pulse position via Nfft/(2pi) >>> >>> >>>This will work reliably only if you have one delta pulse. >>> >> >>Yes, I noted this in my second post. >> >> >>>>I'm not sure if I'm the first to come up with this. >>> >>> >>>Wiener Khintchine Theorem >> >>I don't see how this is relevant. Perhaps you could elaborate. >> >> >>According to Wikipedia, >> >>"The Wiener-Khinchin theorem (also known as the Wiener-Khintchine >>theorem and sometimes as the Khinchin-Kolmogorov theorem) states that >>the power spectral density of a wide-sense-stationary random process is >>the Fourier Transform of the corresponding autocorrelation function." >> >> >>The method I described has nothing to do with autocorrelation nor power >>spectral density. Indeed, "power spectral density" indicates phase is >>removed. The phase response is crucial. Without phase, there is no >>difference between a delta pulse and white noise. > > > Computationally, the fft and ifft are the more or less the same thing. > Therefore what works one way will work the other. A peak in > the frequency domain implies a sinusoid in the time domain. > Therefore a sinusoid in the frequency domain implies a peak > in the time domain. > > The following is just a wild guess: > > Your matlab solution looks like an autocorrelation form of a sinusoid > detector. It removes the "phase" from the time domain signal, since > you don't care about the imaginary portion of a real signal. > > > IMHO. YMMV.
Okay. I can see how to swap time with frequency and apply the same mathematics to do either a) frequency-domain detection of a time-domain pulse or b) time-domain detection of a complex sinusoid The above "peakiness estimator" is analogous to a FM discriminator, smoothed coherently. But I still don't see where autocorrelation fits in. Can you provide a reference for "autocorrelation form of a sinusoid detector"? -- Mark Borgerding 3dB Labs, Inc Innovate. Develop. Deliver.
Okie guys, not to flash anything, but my simulations show that my suggested
solution seems to be doing well.

i.e, if you have Y1(f)....Yn(f).

Unwrap(Phase(Yk(f))) should follow "closest to" a straight line if this is
the best answer of the n candidates. 


I checked this for a few signals..It seems the thing works even if there
are small peaks elsewhere in the time domain, provided there is one large
enough peak in the time domain.
 
Now that I spilled it on this discussion group, can I patent this ?
Seems will be useful in many target recognition applications!!

I will try others suggested by you guys..

I wonder why no one else has encountered this problem before! 


>Ron N. wrote: >> Mark Borgerding wrote: >> >>>Vladimir Vassilevsky wrote: >>> >>>> >>>>Mark Borgerding wrote: >>>> >>>> >>>>>A delta pulse in the time domain creates a flat magnitude frequency >>>>>response having linear phase with a slope that is related to the >>>>>position of the pulse. >>>> >>>> >>>>First question: what is the definition of the "peakedness" ? >>>>Is it the max.peak to average ratio or something else? >>> >>>See the OP, "how sharp a peak is there in y1[n](closer to a delta is >>>better)." >>> >>> >>>>>To get a peakiness estimator, conjugate and multiply each frequency >>>>>bin from -pi to pi with its previous (unconjugated) neighboring bin. >>>>>Then take the sum of this complex vector. In other words, a dot >>>>>product of the frequency response with the conjugated and
shifted-by-1
>>>>>frequency response. >>>>> in matlab/octave terms: >>>>> fx = fftshift( fft(x) ); >>>>> peaky = fx(2:end)' * fx(1:end-1) >>>>> >>>>>The magnitude of this quantity indicates the signal 'peakiness' and >>>>>the phase is related to the pulse position via Nfft/(2pi) >>>> >>>> >>>>This will work reliably only if you have one delta pulse. >>>> >>> >>>Yes, I noted this in my second post. >>> >>> >>>>>I'm not sure if I'm the first to come up with this. >>>> >>>> >>>>Wiener Khintchine Theorem >>> >>>I don't see how this is relevant. Perhaps you could elaborate. >>> >>> >>>According to Wikipedia, >>> >>>"The Wiener-Khinchin theorem (also known as the Wiener-Khintchine >>>theorem and sometimes as the Khinchin-Kolmogorov theorem) states that >>>the power spectral density of a wide-sense-stationary random process
is
>>>the Fourier Transform of the corresponding autocorrelation function." >>> >>> >>>The method I described has nothing to do with autocorrelation nor
power
>>>spectral density. Indeed, "power spectral density" indicates phase is >>>removed. The phase response is crucial. Without phase, there is no >>>difference between a delta pulse and white noise. >> >> >> Computationally, the fft and ifft are the more or less the same thing. >> Therefore what works one way will work the other. A peak in >> the frequency domain implies a sinusoid in the time domain. >> Therefore a sinusoid in the frequency domain implies a peak >> in the time domain. >> >> The following is just a wild guess: >> >> Your matlab solution looks like an autocorrelation form of a sinusoid >> detector. It removes the "phase" from the time domain signal, since >> you don't care about the imaginary portion of a real signal. >> >> >> IMHO. YMMV. > >Okay. I can see how to swap time with frequency and apply the same >mathematics to do either >a) frequency-domain detection of a time-domain pulse >or >b) time-domain detection of a complex sinusoid > >The above "peakiness estimator" is analogous to a FM discriminator, >smoothed coherently. > >But I still don't see where autocorrelation fits in. > >Can you provide a reference for "autocorrelation form of a sinusoid >detector"? > > >-- >Mark Borgerding >3dB Labs, Inc >Innovate. Develop. Deliver. >
Hi All,

I just happened to catch this thread...

I published a paper in the Astronomical Journal that discusses how to
measure the "centroid" (i.e. the position of a signal in a chunk of
data) and "purity" (the RMS dispersion of a pulsation in time wrt the
centroid) of a time domain signal (specifically a sinusoid) by using
derivatives of the fourier amplitude (2nd deriv of power for purity)
and phase (1st derive for centroid).  The derivatives are computed
using Fourier interpolation (one version of which is also discussed in
the paper) and finite differences.

If you are interested, a link to the paper is here:
http://tinyurl.com/lg2oc

Scott

PS:  Credit goes to John Middleditch for originally coming up with
quite a bit of what is "new" in that paper.  (Although, "new" in
astronomy is not necessarily "new" in DSP I realize!)

Ksen wrote:
> Okie guys, not to flash anything, but my simulations show that my suggested > solution seems to be doing well. > > i.e, if you have Y1(f)....Yn(f). > > Unwrap(Phase(Yk(f))) should follow "closest to" a straight line if this is > the best answer of the n candidates. > > > I checked this for a few signals..It seems the thing works even if there > are small peaks elsewhere in the time domain, provided there is one large > enough peak in the time domain. > > Now that I spilled it on this discussion group, can I patent this ? > Seems will be useful in many target recognition applications!! > > I will try others suggested by you guys.. > > I wonder why no one else has encountered this problem before! > > > >
I got a copy of the astro-physics paper..seems the method assumes sinusoids
for signals..May not have applications in general purpose image/signal, but
the definitions laid on centroid and purity can be extended for sure..


BTW, any critical views on my solution on looking at Unwrap(Phase(Yk(f)))
and looking at how close it to a straight line as an indicator of time
domain peakedness?



>Hi All, > >I just happened to catch this thread... > >I published a paper in the Astronomical Journal that discusses how to >measure the "centroid" (i.e. the position of a signal in a chunk of >data) and "purity" (the RMS dispersion of a pulsation in time wrt the >centroid) of a time domain signal (specifically a sinusoid) by using >derivatives of the fourier amplitude (2nd deriv of power for purity) >and phase (1st derive for centroid). The derivatives are computed >using Fourier interpolation (one version of which is also discussed in >the paper) and finite differences. > >If you are interested, a link to the paper is here: >http://tinyurl.com/lg2oc > >Scott > >PS: Credit goes to John Middleditch for originally coming up with >quite a bit of what is "new" in that paper. (Although, "new" in >astronomy is not necessarily "new" in DSP I realize!) > >Ksen wrote: >> Okie guys, not to flash anything, but my simulations show that my
suggested
>> solution seems to be doing well. >> >> i.e, if you have Y1(f)....Yn(f). >> >> Unwrap(Phase(Yk(f))) should follow "closest to" a straight line if this
is
>> the best answer of the n candidates. >> >> >> I checked this for a few signals..It seems the thing works even if
there
>> are small peaks elsewhere in the time domain, provided there is one
large
>> enough peak in the time domain. >> >> Now that I spilled it on this discussion group, can I patent this ? >> Seems will be useful in many target recognition applications!! >> >> I will try others suggested by you guys.. >> >> I wonder why no one else has encountered this problem before! >> >> >> > > >