On Mar 11, 1:56 pm, dbell <bellda2...@cox.net> wrote:> On Mar 11, 9:00 am, "Manolis C. Tsakiris" <el01...@mail.ntua.gr> > wrote: > > > > > >Not quite. (Conjugate) symmetry is a sufficient condition for linear > > >phase, but not a necessary one. > > > >Oli > > > ******************************* > > i apologize, > > > Oli is very correct. It is possible that a filter has linear phase but > > non-symmetrical impulse response. > > > As a very simple counter-example, let's consider the unit-delay system, > > with impulse response > > h[n] = delta[n-1] > > and frequency response > > H(omega) = exp(-i*omega) > > clearly the impulse response is non-symmetrical, but the phase response is > > linear. > > > Manolis > > Manolis, > > The example you gave is actually symmetric, just not symmetric about > the origin. > > DirkHi Dirk, Would you explain me how h[n]=delta[n-1] is symmetric? I do not see it. Pawel
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →
Linear phase and impulse response symmetry
Started by ●March 11, 2008
Reply by ●March 11, 20082008-03-11
Reply by ●March 11, 20082008-03-11
Pawel wrote:> On Mar 11, 11:04 am, prulikow...@gmail.com wrote: >> Dear All, >> >> First of all I am not DSP engineer, scientist whatever. I am >> researcher working with microwave and RF systems, so real bare iron is >> well known to me. >> I have following question: Is it possible to have nonlinear phase in >> frequency domain (nonconstant group delay) and non-symmetrical impulse >> response in time domain? >> >> Regards >> >> Pawel > > OOOps actually it should be Is it possible to have nonlinear phase in > frequency domain (nonconstant group delay) and symmetrical impulse > response in time domain?A signal that has even symmetry around 0 will have a Fourier transform that is purely real with even symmetry, and visa-versa. Delay this signal to be symmetrical around some other point in time and the phase will be some constant times the frequency -- i.e. the group delay will be constant. Unless I've muffed this fairly basic math, then the answer to your question is no. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com Do you need to implement control loops in software? "Applied Control Theory for Embedded Systems" gives you just what it says. See details at http://www.wescottdesign.com/actfes/actfes.html
Reply by ●March 11, 20082008-03-11
Pawel,
A unit delay system h[n] = d[n-1] can be thought as a 3 tap
FIR filter whose coefficients are
h[n] = [0 1 0];
and hence it's group delay is given by
gd = (Nc - 1)/2 = 1
Here Nc = 3 (Nc means number of coefficients).
A unit delay system is a special case of generic 3 tap FIR filter
whose coefficients are
h[n] = [c0 1-2*c0 c0]
For the case c0 = 0, the 3 tap filter turns out to be same as
unit delay system.
With this analysis linear phase and constant group delay concept
can also be applied right upto unit delay system.
The symmetry is with respect to the center coefficient.
Regards
Bharat Pathak
Arithos Designs
~DSP Simplified.
Reply by ●March 11, 20082008-03-11
On Mar 11, 5:05 pm, "bharat pathak" <bha...@arithos.com> wrote:> Pawel, > > A unit delay system h[n] = d[n-1] can be thought as a 3 tap > FIR filter whose coefficients are > > h[n] = [0 1 0]; > > and hence it's group delay is given by > > gd = (Nc - 1)/2 = 1 > > Here Nc = 3 (Nc means number of coefficients). > > A unit delay system is a special case of generic 3 tap FIR filter > whose coefficients are > > h[n] = [c0 1-2*c0 c0] > > For the case c0 = 0, the 3 tap filter turns out to be same as > unit delay system. > > With this analysis linear phase and constant group delay concept > can also be applied right upto unit delay system. > > The symmetry is with respect to the center coefficient. > > Regards > Bharat Pathak > > Arithos Designs > ~DSP Simplified.Thanks a lot Bharat, I did not think of that as array of 3 elements [0 1 0]. thanks a lot to all of You for useful comments. Kind regards Pawel
Reply by ●March 11, 20082008-03-11
On Mar 11, 5:05 pm, "bharat pathak" <bha...@arithos.com> wrote:> Pawel, > > A unit delay system h[n] = d[n-1] can be thought as a 3 tap > FIR filter whose coefficients are > > h[n] = [0 1 0]; > > and hence it's group delay is given by > > gd = (Nc - 1)/2 = 1 > > Here Nc = 3 (Nc means number of coefficients). > > A unit delay system is a special case of generic 3 tap FIR filter > whose coefficients are > > h[n] = [c0 1-2*c0 c0] > > For the case c0 = 0, the 3 tap filter turns out to be same as > unit delay system. > > With this analysis linear phase and constant group delay concept > can also be applied right upto unit delay system. > > The symmetry is with respect to the center coefficient. > > Regards > Bharat Pathak > > Arithos Designs > ~DSP Simplified.Just to summarize odd symmetry FIR cannot have nonlinear phase, right? Pawel
Reply by ●March 11, 20082008-03-11
Pawel,
The following 4 cases will always have linear phase.
Type 1. coefficient length ODD and odd-symmetric.
Type 2. coefficient length EVEN and odd-symmetric.
Type 3. coefficient length ODD and even-symmetric.
Type 4. coefficient length EVEN and even symmetric.
Examples of all four types of linear phase FIR's are
Type1 : h[n] = [1 2 3 2 1];
Type2 : h[n] = [1 2 2 1];
Type3 : h[n] = [1 2 0 -2 -1];
Type4 : h[n] = [1 2 -2 -1];
Regards
Bharat Pathak
Arithos Designs
www.Arithos.com
~dsp simplified
Reply by ●March 11, 20082008-03-11
Pawel wrote:> On Mar 11, 12:06 pm, "Manolis C. Tsakiris" <el01...@mail.ntua.gr> > wrote: >> Hello Powell, >> >> the answer is no. >> When a filter has a symmetrical impulse response then it's frequency >> response is striclty linear. >> >> Manolis > > Hello Manolis, > > Thanks For Your help. > > Is the following possible: > > Can nonsymmetrical impulse response (ie nonsymmetrical FIR filter) > have > linear phase?No. Consider any filter with an asymmetric impulse response, FIR, IIR, or analog. (Why must a causal IIR necessarily have an asymmetric impulse response?) Filter a signal and record the result. Some frequencies will be delayed more than others. Now time-reverse the recorded result (for an analog signal, play the tape backwards) and filter it again. Those frequencies delayed most in the first pass will be similarly delayed on the second pass, but they are move to what originally was the earlier part of the file/tape. The result is linear phase (and also a symmetric impulse response. In effect, a symmetric FIR does the forward/backward thing in one pass. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by ●March 11, 20082008-03-11
"Jerry Avins" <jya@ieee.org> wrote in message news:lt2dnYhEBNcrfEvanZ2dnUVZ_hCdnZ2d@rcn.net...> Pawel wrote: >> On Mar 11, 12:06 pm, "Manolis C. Tsakiris" <el01...@mail.ntua.gr> >> wrote: >>> Hello Powell, >>> >>> the answer is no. >>> When a filter has a symmetrical impulse response then it's frequency >>> response is striclty linear. >>> >>> Manolis >> >> Hello Manolis, >> >> Thanks For Your help. >> >> Is the following possible: >> >> Can nonsymmetrical impulse response (ie nonsymmetrical FIR filter) >> have >> linear phase? > > No. > > Consider any filter with an asymmetric impulse response, FIR, IIR, or > analog. (Why must a causal IIR necessarily have an asymmetric impulse > response?) Filter a signal and record the result. Some frequencies will be > delayed more than others. Now time-reverse the recorded result (for an > analog signal, play the tape backwards) and filter it again. Those > frequencies delayed most in the first pass will be similarly delayed on > the second pass, but they are move to what originally was the earlier part > of the file/tape. The result is linear phase (and also a symmetric impulse > response. > > In effect, a symmetric FIR does the forward/backward thing in one pass. > > Jerry > -- > Engineering is the art of making what you want from things you can get. > ���������������������������������������Jerry's response suggests this: Given the unit sample response it can always be split into even and odd parts. If it's symmetrical then the odd part is zero. If it's antisymmetrical then the even part is zero. If it's neither then both parts are nonzero. The Fourier Transform of the even part is real and even. The Fourier Transform of the odd part is imaginary and odd. If the unit sample resonse is neither purely even or odd then its Fourier Transform has a nonzero real even part *and* a nonzero odd imaginary part - by superposition. If the real and imaginary parts are nonzero then the phase can't be linear. Why? A linear phase component (constant delay) is represented by the Fourier Transform of the unshifted time function multiplied by e^-jwT where T is the constant delay. So, if there's a frequency function F(w) we can multiply it by e^jwT. This places the real even part of the time function centered at zero time. This places the imag odd part of the time function centered at zero time. Now the question is, is phase zero or not? If the imag part is zero then the phase is zero. If the real part is zero then the phase is 90 degrees at all frequencies. If neither part is zero then the phase is nonzero. But, the linear part of the phase was removed so the remaining phase must be nonlinear. Does that work? Need improvement? Fred
Reply by ●March 11, 20082008-03-11
On Mar 11, 8:42 pm, "Fred Marshall" <fmarshallx@remove_the_x.acm.org> wrote:> "Jerry Avins" <j...@ieee.org> wrote in message > > news:lt2dnYhEBNcrfEvanZ2dnUVZ_hCdnZ2d@rcn.net... > > > > > Pawel wrote: > >> On Mar 11, 12:06 pm, "Manolis C. Tsakiris" <el01...@mail.ntua.gr> > >> wrote: > >>> Hello Powell, > > >>> the answer is no. > >>> When a filter has a symmetrical impulse response then it's frequency > >>> response is striclty linear. > > >>> Manolis > > >> Hello Manolis, > > >> Thanks For Your help. > > >> Is the following possible: > > >> Can nonsymmetrical impulse response (ie nonsymmetrical FIR filter) > >> have > >> linear phase? > > > No. > > > Consider any filter with an asymmetric impulse response, FIR, IIR, or > > analog. (Why must a causal IIR necessarily have an asymmetric impulse > > response?) Filter a signal and record the result. Some frequencies will be > > delayed more than others. Now time-reverse the recorded result (for an > > analog signal, play the tape backwards) and filter it again. Those > > frequencies delayed most in the first pass will be similarly delayed on > > the second pass, but they are move to what originally was the earlier part > > of the file/tape. The result is linear phase (and also a symmetric impulse > > response. > > > In effect, a symmetric FIR does the forward/backward thing in one pass. > > > Jerry > > -- > > Engineering is the art of making what you want from things you can get. > > ��������������������������������������� > > Jerry's response suggests this: > > Given the unit sample response it can always be split into even and odd > parts. > If it's symmetrical then the odd part is zero. > If it's antisymmetrical then the even part is zero. > If it's neither then both parts are nonzero. > > The Fourier Transform of the even part is real and even. > The Fourier Transform of the odd part is imaginary and odd. > If the unit sample resonse is neither purely even or odd then its Fourier > Transform has a nonzero real even part *and* a nonzero odd imaginary part - > by superposition. > > If the real and imaginary parts are nonzero then the phase can't be linear. > > Why? > > A linear phase component (constant delay) is represented by the Fourier > Transform of the unshifted time function multiplied by e^-jwT where T is the > constant delay. > > So, if there's a frequency function F(w) we can multiply it by e^jwT. > This places the real even part of the time function centered at zero time. > This places the imag odd part of the time function centered at zero time. > Now the question is, is phase zero or not? > If the imag part is zero then the phase is zero. > If the real part is zero then the phase is 90 degrees at all frequencies. > If neither part is zero then the phase is nonzero. > But, the linear part of the phase was removed so the remaining phase must be > nonlinear. > > Does that work? Need improvement?Not sure what the flaw in your argument is yet (I'm working on it), but here's a counterexample: h(t) = sinc(n - T) where T is non-integer. This is asymmetric, but linear phase. -- Oli
Reply by ●March 11, 20082008-03-11







