Linear Phase Filter Impulse Response: H(z) Calculation and Analysis

AI Thread Summary
The discussion revolves around calculating the z-transform H(z) of a given impulse response h(k) and determining whether it represents a linear phase system or a high-pass filter. The calculated H(z) is confirmed as correct, leading to an exploration of the frequency response H(f) and its simplification using Euler's formula. The participants clarify that the filter exhibits linear phase characteristics, with the phase response indicating a fixed offset and a potential jump of π. However, upon evaluating H(z) at specific frequencies, it is concluded that the filter is neither high-pass nor low-pass, suggesting it may be a band-pass filter instead. The conversation highlights the importance of understanding filter characteristics and the algebra involved in frequency response analysis.
Evo8
Messages
168
Reaction score
0

Homework Statement



A filter with the following impulse response
h(k)=(-.75 .5 0 -.5 .75)

find H(z)
Is its a linear phase system?
Is it a high pass filter?

Homework Equations



h=[c0, c1, c2, c1, c0] <--- I think this is valid for this problem anyway

The Attempt at a Solution



So if i understand this properly for my H(z) I get.

H(z)=-0.75+0.52z^{-1}-0.5z^{-3}+0.75z^{-4}

Then to find out weather or not this is a linear phase system I find my H(f) frequency response?

I get

H(f)=-0.75+0.5e^{-j\theta}-0.5e^{-3j\theta}+0.75e^{-4j\theta}

First off, Am I on the right track here?

Thanks for the help,
 
Physics news on Phys.org
Ok so I did a little more digging and I think I am going about things a little wrong here?

The given values for h(k) are as follows
H(0)=-.75
H(1)=.5
H(2)=0
H(3)=-0.5
H(4)=0.75

I need to find the z transform of this sequence. I always have a hard time with this form. "transpose"

do I do this form inspection? So I would end up with the following?

H(z)=-0.75+0.5z^{-1}-0.5z^{-3}+0.75z^{-4}

This is what I had before though. Is my Z transform of the sequence above along the right lines?

Thanks in advance..
 
Your z-transform is correct.

TBH, I do not know whether this is a linear phase system or a high pass filter.
I was hoping someone else would respond before now, but obviously no one else did.
So I guess for now you're stuck with me.
The wiki pages are not clear enough as far as I'm concerned and I haven't tried to delve too deeply into other sources yet.

Do you have more information what the conditions are for both types of filters?
 
I can dig up some information on the types of filters and add it to the thread.

Right now I am a little stuck with the simplification of my H(f) frequency response.

This is what I have right now from evaluating my H(z) at z=j/theta

H(f)=-0.75+0.5e^{-j\theta}-0.5e^{-3j\theta}+0.75e^{-4j\theta}

When I use eulers identity to convert to sin and cosine it becomes a mess that only makes things worse. I am sure there's something I can do to simplify and factor before i apply euler's identity. I could factor out a 0.5 but i don't see how that would help. Since the exponents in the exponentials are different how can I combine them? I am not seeing something here.

Any hints would be appreciated? As always I am stuck on the algebra.
 
You can take out ##e^{-2j\theta}##.
That should leave you with 2 sines using Euler's formula.
 
Man I am not good at this. I don't fully see it?

Something like this sort of?

H(f)=-0.75+e^{-2j\theta}(0.5-0.5e^{-j\theta}+0.75e^{-2j\theta})

I don't think this is correct at all though. I feel like I have broken every rule in algebra even writing this? I am looking up basic algebra rules now to see if i can get this to make sense.
 
Hmm, that is "half" right.
I don't quite understand how you did half correct and dropped stuff off in the other half...

Anyway, it should be:
$$
e^{-2j\theta}(-0.75 e^{2j\theta}+0.5 e^{j\theta}-0.5 e^{-j\theta}+0.75 e^{-2j\theta})
$$

Can you recognize the sines now?
 
Ok after looking at what you have written and played with the numbers a bit I see where i got lost. Again basic algebra skills that are missing.

Ive used Euler's formula and but i end up with 2 sines and 1 cosine.

The exponentials in the parenthesis simplify down to -1.5jsin(2\theta)+jsin(\theta)

When I apply Euler to the factored out e^{-2j\theta} and add it to the above i get...

cos(2\theta)-2.5jsin(2\theta)+jsin(\theta)

How do I get left with just 2 sines?

Thanks again for your help on this.
 
Not missing. I'd say not fully developed yet, but I guess that won't be long now. ;)

The expression you got is not right though. Apparently you did not properly eliminate the parentheses.

But anyway, I intended:
$$
e^{-2j\theta}(-1.5j\sin(2\theta)+j\sin(\theta))
$$
Which you can rewrite as:
$$
e^{-2j\theta}e^{j{\pi \over 2}}(-1.5 \sin(2\theta)+ \sin(\theta))
= e^{j({\pi \over 2} - 2\theta)}(-1.5\sin(2\theta)+\sin(\theta))
$$
I don't think there's much use in simplifying more.

The 2 sines form a real number now.
If you're interested in the argument of the complex number, you can read it off now.
It's ##({\pi \over 2} - 2\theta)## if the sine expression is positive.
Otherwise you need to add another pi.
 
Last edited:
  • #10
Your right I didnt evaluate the parenthesis properly. Looking back I am not sure why I thought it was ok to just remove those after there were individual terms added or subtracted. I see where I went wrong. I understand now how to get the equation shown below.
$$
e^{j(\frac{\pi}{2}−2θ)}(−1.5sin(2θ)+sin(θ))
$$

This is actually in the correct form for me to determine weather or not this is a linear phase filter.

Looking in the section about this in my book and following an example it talks about an:

"alternate" way to characterize a linear phase filter is in terms of the frequency response which can be written in the following general for.
$$
H(f)=A_{r}(f)e^{\alpha-2\pi\tau f}
$$

Here the factor $$A_{r}(f)$$ is real, but it can be both posative and negative. It is referred to as the amplitude response of H(z). This is to distinguish it from the magnitude response A(f), which is never negative. Taking the magnitudes of both sides we see that a amplitude response and the magnitude response are related to one another as follows.
$$
|A_{r}(f)|=A(f)
$$

The points at which A_{r}(f)=0 are the points Fz, where the phase can abruptly change by \pi as Ar(f) changes sign. Thus ghd piecewise-constant function B(f) jumps between zero and \pi each time the amplitude response Ar(f) changes sign.

A linear phase characteristic in the passband can be achieved in the analog domain by an IIR Bessel filter. However, the linear phase feature does not survive the analog-to-digital transformation. Consequently, it is better to start with a digital FIR filter as follows.

H(z)=\sum b_{i}z^{-i}

For an FIR filter, there is a simple symmetry condition on the coefficients that guarantees a linear phase response.

It then shows an example with similar coefficients unlike the problem that I have been working on through this thread. So now I am not 100% sure how to go about it.

If what I do have is a linear phase filter the \alpha=\frac{\pi}{2} but I am not sure what the \tau would be...maybe \tau=-1.5T I dunno.

I still don't see anything in this chapter about high pass filters so I am looking into that.
 
  • #11
Where you have written ##\theta## I think we should read ##2\pi f## (or something like that).

And I think your formula should include "j":
$$H(f)=A_{r}(f)e^{j(\alpha-2\pi\tau f)}$$

As such your ##\alpha## would be ##\pi \over 2## and ##\tau## would be ##2## (or something like that), making it a linear phase filter.

More specifically the phase changes linearly with f, with a fixed offset and a jump of pi somewhere.
I think this constitutes a linear phase filter.
 
Last edited:
  • #12
Your correct I must have missed that j in there. and yes the \theta is 2\pi f

And after reviewing the examples again I see now where that tau comes from. I guess i didnt see or recognize that it was in the exponential. So my problem here is very similar to an example in the book (the end anyway) so the \tau=2T I think. Plus the 4 in my exponential was throwing me off I suppose.

Im still searching for high pass filter information. But the rest of this problem is MUCH more clearer now. Thank you as always for the help. MUCH appreciated.
 
  • #13
I've helped you a couple of times now and I'd like to know a bit about who it is that I'm helping...?
Could you for instance fill in a couple of fields in your profile?
 
  • #14
No problem. I filled in the "about me" section.

Btw thanks for the Happy New year wishes on my profile! I guess its been a while since I've visited it.
 
  • #16
Ill see if I can dig up a picture and post.

Btw in case you were curious about determining weather if this filter is a high pass or not this is what I found out.

Z=e^{j2\pi fT} when f=0, z=1 and when f=\frac{F_{s}}{2} , Z=-1 So if I evaluate my H(z) for this filter at z=1 and z=-1 I get 0 for a response on both ends. So it can't be a highpass or a low pass for that matter. Band pass or something like that i would assume.

so @f=0 H(z)=0
@f=fs/2 H(z)=0

Thought you might be interested in this.

Thanks again!
 
  • #17
Thanks for the info.
It'll come in handy when next someone posts a question like this.

Cheers! :smile:
 
  • #18
I like Serena said:
Thanks for the info.
It'll come in handy when next someone posts a question like this.

Turns out, the information you posted comes in handy sooner than I expected! :wink:
 
  • #19
Thanks for pointing this out! I forgot we spoke about the phase response in here.
 
Back
Top