Exercise 11.  Use the transfer function   [Graphics:Images/ZTransformFilterModHome_gr_1027.gif]   and show that the moving average filter in Example 9.24   

has an alternative formula   [Graphics:Images/ZTransformFilterModHome_gr_1028.gif].

Solution 11.

See text and/or instructor's solution manual.

Short Solution.   Use the General Filter Equation (9-29) and the corresponding Transfer Function (9-34)

in the case   [Graphics:../Images/ZTransformFilterModHome_gr_1029.gif]   and   [Graphics:../Images/ZTransformFilterModHome_gr_1030.gif]  for  [Graphics:../Images/ZTransformFilterModHome_gr_1031.gif].  Then the transfer function  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1032.gif],  

corresponds to the filter  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1033.gif].  

Now set   [Graphics:../Images/ZTransformFilterModHome_gr_1034.gif],   and   [Graphics:../Images/ZTransformFilterModHome_gr_1035.gif]   and obtain the alternative formula for the filter:

                    [Graphics:../Images/ZTransformFilterModHome_gr_1036.gif].

 

Detailed Solution.   Use the General Filter Equation (9-29) and the corresponding Transfer Function (9-34) in the case  [Graphics:../Images/ZTransformFilterModHome_gr_1037.gif].  

Get the new fact that the transfer function  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1038.gif],  

corresponds to the filter  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1039.gif].  

Hence, the the moving average filter in Example 9.24 is  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1040.gif]  

and has the transfer function  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1041.gif].  

Next, we can use the fact that   [Graphics:../Images/ZTransformFilterModHome_gr_1042.gif]   and write

                    [Graphics:../Images/ZTransformFilterModHome_gr_1043.gif].  

Then make the substitution  [Graphics:../Images/ZTransformFilterModHome_gr_1044.gif]  and get  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1045.gif].  

It follows that  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1046.gif].  
                    
Therefore, the transfer function for the moving average filter in Example 9.24 can be written as

                    [Graphics:../Images/ZTransformFilterModHome_gr_1047.gif].  

        Again, we use the General Filter Equation (9-29) and the corresponding Transfer Function (9-34) in the case  [Graphics:../Images/ZTransformFilterModHome_gr_1048.gif].  

Get another new fact that the transfer function  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1049.gif],  

corresponds to the filter  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1050.gif]    

        For this exercise, we use   [Graphics:../Images/ZTransformFilterModHome_gr_1051.gif],   [Graphics:../Images/ZTransformFilterModHome_gr_1052.gif]  for  [Graphics:../Images/ZTransformFilterModHome_gr_1053.gif]   and   [Graphics:../Images/ZTransformFilterModHome_gr_1054.gif]   and get  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1055.gif].  

Therefore, the moving average filter in Example 9.24 has the alternative formula   

                    [Graphics:../Images/ZTransformFilterModHome_gr_1056.gif].

 

We are done.   

Aside.  We can let Mathematica double check our work.

[Graphics:../Images/ZTransformFilterModHome_gr_1057.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_1058.gif]


[Graphics:../Images/ZTransformFilterModHome_gr_1059.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_1060.gif]

Aside.  The Maple commands are similar  

[Graphics:../Images/ZTransformFilterModHome_gr_1061.gif]  

                                                            [Graphics:../Images/ZTransformFilterModHome_gr_1062.gif]  


[Graphics:../Images/ZTransformFilterModHome_gr_1063.gif]  

                                                            [Graphics:../Images/ZTransformFilterModHome_gr_1064.gif]  

 

We are really done.   

Aside.  We can graph the amplitude response for the filter   [Graphics:../Images/ZTransformFilterModHome_gr_1065.gif].  

 

                    [Graphics:../Images/ZTransformFilterModHome_gr_1066.gif]          [Graphics:../Images/ZTransformFilterModHome_gr_1067.gif]

                    Amplitude response   [Graphics:../Images/ZTransformFilterModHome_gr_1068.gif]   and zero-pole plot of   [Graphics:../Images/ZTransformFilterModHome_gr_1069.gif],  

                    for the filter   [Graphics:../Images/ZTransformFilterModHome_gr_1070.gif].

                    The higher frequencies are attenuated and   [Graphics:../Images/ZTransformFilterModHome_gr_1071.gif]   when   [Graphics:../Images/ZTransformFilterModHome_gr_1072.gif].    

 

Remark.   We can multiply the expression for  [Graphics:../Images/ZTransformFilterModHome_gr_1073.gif]  by  [Graphics:../Images/ZTransformFilterModHome_gr_1074.gif]  and obtain the transfer function as a product of "zero-out factors"  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1075.gif]  

 

We are really really done.   

Aside.  Let us investigate how well the filter works to eliminate signals  [Graphics:../Images/ZTransformFilterModHome_gr_1076.gif]  which are close to the "zero-out" frequencies.

        For illustration purposes we will explore the casual input signal   [Graphics:../Images/ZTransformFilterModHome_gr_1077.gif].

The signal component  [Graphics:../Images/ZTransformFilterModHome_gr_1078.gif]  will be attenuated by the factor  [Graphics:../Images/ZTransformFilterModHome_gr_1079.gif],  and

The signal component  [Graphics:../Images/ZTransformFilterModHome_gr_1080.gif]  will be attenuated by the factor  [Graphics:../Images/ZTransformFilterModHome_gr_1081.gif],  and

The signal component  [Graphics:../Images/ZTransformFilterModHome_gr_1082.gif]  will be attenuated by the factor  [Graphics:../Images/ZTransformFilterModHome_gr_1083.gif],  and

The signal component  [Graphics:../Images/ZTransformFilterModHome_gr_1084.gif]  will be attenuated by the factor  [Graphics:../Images/ZTransformFilterModHome_gr_1085.gif].  

[Graphics:../Images/ZTransformFilterModHome_gr_1086.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_1087.gif]


[Graphics:../Images/ZTransformFilterModHome_gr_1088.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_1089.gif]


[Graphics:../Images/ZTransformFilterModHome_gr_1090.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_1091.gif]


[Graphics:../Images/ZTransformFilterModHome_gr_1092.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_1093.gif]


[Graphics:../Images/ZTransformFilterModHome_gr_1094.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_1095.gif]

                    [Graphics:../Images/ZTransformFilterModHome_gr_1096.gif]          [Graphics:../Images/ZTransformFilterModHome_gr_1097.gif]

                    The causal input sequence  [Graphics:../Images/ZTransformFilterModHome_gr_1098.gif]  and the corresponding causal output sequence.

                    We can see that the filter practically eliminates the signals  [Graphics:../Images/ZTransformFilterModHome_gr_1099.gif]  which are close to the "zero-out" frequencies.

 

Remark.  In Exercise 10 we investigated the moving average of six points.  

  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

This solution is complements of the authors.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) 20098 John H. Mathews, Russell W. Howell