Wednesday, 21 October 2015

signal - How to know the kind of filter from the transfer function



I got that system $x_n \to x_n-x_{n-1}$, so $h_n=[.....,0,1,-1,0,...]$, with $h_0=1$ and $h_1=-1$, so the transfer function given by:


H(ω)=i=hnejwn=h0ejw(0)+h1ejw(1)=1ejw

. How to knwo the type of filter, if it is high pass filter, low pass filter, etc.


I appreciate your help.




Answer



A completely formal answer would be: given the z-transform of an impulse response h=(0,,0,1,1,0,,0)

which is H(z)=n=hnzn=h0+h1z1
we study the frequency response H(z=ej2πfT)=h0+h1ej2πfT=h0+h1cos(2πfT)jh1sin(2πfT)
Clearly, |H(z=ej2πfT)|=0
is the same as |H(z=ej2πfT)|2=0(h0+h1cos(2πfT))2+(h1sin(2πfT))2=0
h20+h21(cos(2πfT)2+sin(2πfT)2)+2h0h1cos(2πfT)=h20+h21+2h0h1cos(2πfT)=0
So the zeros of this transfer function are at f0=k2πTarccos(h20h212h0h1),kZ
If h0=1,h1=1
then this is a digital differentiator. For f[0,1/T]=[0,fs]
the frequencies at which the amplitude response is 0 are f0=12πTarccos(1/2)=kT,kZ
so practically f0={0,fs}
which makes this filter the simplest highpass response. As for the phase response it is simply H(z=ej2πfT)=π2πfT
The dual case is the digital integrator, i.e. h0=h1=1


Another way to derive the differentiatior response is H(z=ej2πfT)=1ej2πfT=(ejπfTejπfT)ejπfT=j2sin(πfT)ejπfT

We can also define G(f)=|H(z=ej2πfT)|=2sin(πfT)
with f[0,fs]
. It is even simpler to see that G(f)=2sin(πfT)=0f={0,fs=1T}
In this way it is also easier to see that the phase response is H(z=ej2πfT)=j+G(f)πfT=π2+0πfT


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...