11.07.2015 Views

hamming

hamming

hamming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

108 CHAPTER 15Figure 15.II propose to design a simple filter with just two coefficients, and hence I can meet exactly two conditionson the transfer function. When doing theory we use the angular frequency ω, but in practice we userotations f, and the relationship isLet the first condition on the digital filter be at f=1/6 the transfer function is exactly 1 (this frequency is toget through the filter unaltered), and the second condition at f=1/3 it is to be zero (this frequency is to bestopped completely). My simple filter has the form, with the two coefficients a and b,Substituting in the eigenfunction exp{2πifn} we will get the transfer function, and using n=0 forconvenience,The solution isand the smoothing filter is simplyIn words, the output of the filter is the sum of three consecutive inputs divided by 2, and the output isopposite the middle input value. [It is the earlier smoothing by 3’s except for the coefficient 1/2.]Now to produce some sample data for the input to the filter. At the frequency f= 1/6 we use a cosine atthat frequency taking the values of the cosine at equal spaced values n=0,1,…, while the second column ofdata we use the second frequency f=1/3, and finally on the third column is the sum of the two other columnsand is a signal composed of the two frequencies in equal amounts.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!