**ABSTRACT**

The Weighted Least Squares (WLS) principle is popular in filter design due to its flexibility, where it can output equiripple filters with appropriate target function and weighted function. Therefore, this research studies the influence of the target function in linear phase Finite-Impulse-Response (FIR) filter design by comparing different target functions in WLS iterations. Compared with the traditional one, simulations show that the proposed target function can obtain more accurate stopband start frequencies which will be useful if the stopband start frequency must be precise in applications.

PDF Abstract XML References Citation

**Received:**November 05, 2011;

**Accepted:**January 13, 2012;

**Published:**February 28, 2012

####
**How to cite this article**

*Information Technology Journal, 11: 734-740.*

**DOI:**10.3923/itj.2012.734.740

**URL:**https://scialert.net/abstract/?doi=itj.2012.734.740

**INTRODUCTION**

Filters are widely used in signal process, where they can filter the unwanted signal and maintain the useful signal. So far, the filter had been used in speech compression more than twenty-five years (Crochiere and Rabiner, 1983). Today they are used for the compression of image, video, audio signals as well as some applications in digital communication systems (Lyons, 2004), such as the perfect digital transmultiplexing (Vetterli, 1986) and the channel equalization (Scaglione *et al*., 1999). They have also been considered for matched filters in wireless channels. In general, filters are important in digital communication.

There are two kinds of filters which are named Finite Impulse Response (FIR) filter (McClellan and Parks, 2005; Lim, 1983; Johnson, 1990; Lai, 2009) and Infinite Impulse Response (IIR) filter (Konopacki and Moscinska, 2007; Lai and Lin, 2010; Rabiner and Gold, 1975). Taken into the consideration the environment of wireless communications, the linear phase property is important (Proakis, 2000), thus, both the IIR filter and the non-linear phase FIR filter are not suitable for wireless communications and our investigations focus on the linear phase FIR filter design.

In previous literature, there are many conventional methods to design FIR filter, such as the windowing method, the frequency sampling and the Parks-McClellan method (Lyons, 2004; McClellan and Parks, 2005). The windowing method is the simplest but it cannot control the approximation errors in different bands (Lim, 1983). On the other hand, the equiripple property in passband is necessary for communication applications (Proakis, 2000), which has been done through the minimax optimization and the Remez exchange technique (McClellan and Parks, 2005; Boyd and Vandenberghe, 2004; McClellan *et al*., 1973). Aside these methods, there are linear programming methods (Lim, 1983; Johnson, 1990) and WLS methods (Lim *et al*., 1992; Chi and Kou, 1991), the latter is also investigated in this study.

Generally, the WLS method uses a suitable frequency response weighting function to attach importance to different frequency band which produces an easier way to filter design. In the equiripple filter design, the determination of the frequency response weighting function is an essential and remarkable issue and an iterative process of the weighted function has been demonstrated by Lim *et al*. (1992) which can make the iteration converge rapidly. However, the iteration of Lim *et al*. (1992) cannot produce the precise stopband start frequency and passband cutoff frequency. Additionaly, due to its nature of error minimization, the WLS method should also account for the target frequency response function which is the main content in present study.

In order to tackle these problems above, this study attempts to define novel frequency response target functions instead of weighted function which yields more accurate stopband start frequency and passband cutoff frequency. This modification must be beneficial for wireless communications, since, the transition band location is also an important filter performance indicator at this time, i.e., at least with the same importance as the passband ripple and the stopband attenuation.

**THE LINEAR PHASE FIR FILTER AND LEAST SQUARE MODEL**

The linear phase property is the essential issue for wireless applications (Proakis, 2000) and there are four types FIR linear-phase filters, where the type II is chosen as a example in our investigations. A type II linear phase filter is defined as:

(1) |

where, h(n) and M denote the filter coefficient and the filter length.

In study of Rabiner and Gold (1975) and Lyons (2004), we can find the frequency response expression of Eq. 1:

(2) |

where, α[k] = 2h[(M/2)]-2, k = 1, 2, ...M/2, α[0] = h[M/2], and trig(.,.) is an appropriate trigonometrically function defined in [10]. According to Eq. 2, the frequency response error function E[ω] is given by:

(3) |

where, Ĥ(ω) represents the frequency response target function. Formula 3 can be evaluated on a dense grid of frequencies linearly distributed from ω = 0 to ω = π and therefore, form a set of linear equations to find the least-square solution. For a filter length N, L = 4N frequency grid points are adequate and those equations corresponding to ω’s within the transition band are discarded (Lim *et al*., 1992).

Formula 3 can be written in matrix form:

(4) |

where:

and (.)^{T} denotes the transposing operation. From Eq. 4, the least squares design can be expressed as (Rabiner and Gold, 1975):

(5) |

**THE STUDY OF TARGET FUNCTION IN WLS DESIGN**

**The principle of weighted least square:** In the weighted least square process, we have the following cost function:

(6) |

where, r(ω_{n}) is the least square weighting function. Minimizing Eq. 6 produces the optimum solution (Lim *et al*., 1992; Chi and Kou, 1991):

(7) |

where, R is a diagonal matrix whose n-th diagonal element is r(ω_{n}), i.e., R = diag[r(ω_{n})]_{n = 1..M}.

Generally, the minimax design is superior to the least square design near the band edges whereas the least square design has a much smaller ripple magnitude elsewhere. Moreover, the performance of the least square design near the band edges can be improved by using a relatively larger r(ω_{n}) near the band edge. This is the essence of the weighted least squares technique (Lim *et al*., 1992). In order to accomplish the WLS process, Lim and Lee exploited an iterative process and proposed to use the following weighting function update:

(8) |

where, r_{k}(ω) and β_{k}(ω) denote as the weighting function and the required update at the kth iteration. According to Lim *et al*. (1992), β_{k}(ω) can be determined to the extreme error frequency but we won’t present its derivation in detail for the sake of simplicity. In present study, we employ the same iteration shown in Eq. 8.

**Comparative study of target function definition:** In Eq. 3, we have defined Ĥ(ω) as the target function which together with the weighted function will finally affect the frequency response error. Thus, the target function definition will influence the performance of the WLS method and a good choice of target function may lead to a better filter. Hence, we try three definitions and analyze their performance.

Fig. 1(a-c): | Three target function definitions; (a) Definition in, (b) Area constraint definition and (c) Curve constraint definition |

All three definitions are demonstrated in Fig. 1. In Fig. 1a, the first definition from Lim * et al*. (1992), named case A in present study, has the following form:

(9) |

where, L = 1024, ndwp means the passwand cut-off point and ndws represents the stopband start point. Note that ω_{p} and ω_{s} are the stopband start frequency and passband cutoff frequency which are known parameters for a given wireless system.

The second definition in Fig. 1b, named case B in present study, must obey:

(10) |

where, lb(w) and ub(w) mean the lower and the upper amplitude limit in the transition band. This target function different from the first one on the constraint in transition bands. It offers more information to the design process and we can control the WLS algorithm more flexible. The most important in this method is that we need to choose appropriate lower and upper limits which is a nuisance work and can be done by simulations. Without loss of generality, both lb(w) and ub(w) are chosen equi-spaced around the line through (ω_{p}, 1) and (ω_{s}, 0).

Fig. 2: | The requirement of TD-SCDMA matched filter |

The final definition named as case C, as seen in Fig. 1c, is a curve through (ω_{p}, 1) and (ω_{s}, 0), i.e.,

(11) |

where, P = 1024.

**APPLICATION IN DESIGNING TD-SCDMA SIGNAL SOURCE**

Here, the simulation result are presented to prove the effectivity of transition band constraints in WLS filter design. Without loss of generality, we assume that the filter must meet the requirement of the Time Division Synchronous Code Division Multiple Access (TD-SCDMA) matched filter (3GPP, 2008) which is shown in Fig. 2. Moreover, extensions to other standards are straightforward.

In our simulations, the four times oversampling is assumed thus the digital frequencies of ω_{p}, ω_{c} and ω_{s} in Fig. 2 are 0.237227π, 0.25π and 0.301094π.

From Fig. 3-5, the subfigure shows the zoomed passband ripple. We can explicitly see that the passband ripple is approximately equiripple and less than 2 dB, thus, satisfying the requirements of TD-SCDMA.

Fig. 3(a-c): | The magnitude response of FIR filter with length 24, (a) Case A, (b) Case B and (c) Case C |

Moreover, once the filter length is larger than 48, the stopband attenuation is also adequate. However, the transition performance is difficult to identify, accordingly, Table 1 is presented to solve this problem, where Rp and As represent the passband ripple and the stopband attenuation.

Fig. 4(a-c): | The magnitude response of FIR filter with length 48, (a) Case A, (b) Case B and (c) Case C |

Fig. 5(a-c): | The magnitude response of FIR filter with length 64, (a) Case A, (b) Case B and (c) Case C |

Table 1: | The transition band performance of the FIR filter |

From Table 1, it’s obviously that case B and case C produce small transition bands. Moreover, the stopband start frequency of case B is closer to its expected value when compared with that of case A. This advantage is important in communication applications, since the accurate stopband start frequency absolutely reduce the adjacent channel interference. Hence, we conclude that appropriate constraints on transition bands will be beneficial for the filter design.

**CONCLUSIONS**

In this study, we presented comparisons between different target functions in WLS filter design. Three target functions are defined and simulated, results show that reasonable constraints on the transition band will yield the better stopband start frequency which is important in some wireless applications.

**ACKNOWLEDGMENT**

This study is Supported by Zhejiang provincial NSF under grant No. Y1090645, the key project of Chinese ministry of education under grant No.210087 and in part by the open research fund of national mobile communications research laboratory, Southeast University (No. 2010D06).

####
**REFERENCES**

- Chi, C.Y. and Y.T. Kou, 1991. A new self-initiated optimum WLS approximation method for the design of linear phase FIR digital filters. Proceedings of the International Sympoisum on Circuits and Systems, June 11-14, 1991, IEEE., pp: 168-171.

CrossRefDirect Link - Konopacki, J. and K. Moscinska, 2007. A simplified method for IIR filter design with quasi-equiripple passband and least-squares stopband. Proceedings of 14th IEEE International Conference on Electronics, Circuits and Systems, December 11-14, 2007, ICECS, pp: 302-305.

CrossRef - Lai, X. and Z. Lin, 2010. Minimax design of IIR digital filters using a sequential constrained least-squares method. IEEE Trans. Signal Process., 58: 3901-3906.

CrossRefDirect Link - Lai, X., 2009. Optimal design of nonlinear-phase FIR filters with prescribed phase error. IEEE Trans. Signal Process., 57: 3399-3410.

CrossRefDirect Link - Lim, Y.C., J.H. Lee, C.K. Chen and R.H. Yang, 1992. A weighted least squares algorithm for quasi-equiripple FIR and IIR digital filter design. IEEE Trans. Signal Process., 40: 551-558.

CrossRef - Lim, Y.C., 1983. Efficient special purpose linear programming for FIR filter design. IEEE Trans. ASSP, 31: 963-968.

CrossRef - McClellan, J.H. and T.W. Parks, 2005. A personal history of the Parks-McClellan algorithm. IEEE Signal Process. Mag., 22: 82-86.

CrossRefDirect Link - McClellan, J.H., T.W. Parks and L. Rabiner, 1973. A computer program for designing optimum FIR linear phase digital filters. IEEE Trans. Audio Electroacoustics, 21: 506-526.

CrossRefDirect Link - Scaglione, A., G.B. Giannakis and S. Barbarossa, 1999. Redundant filter bank precoders and equalizers part I: unification and optimal designs. IEEE Trans. Signal Process, 47: 1988-2006.

CrossRef - Vetterli, M., 1986. Perfect transmultiplexers. Proceedings of IEEE International Conference on Acoustics, Speech, and Signal Processing, April 1986, ICASSP, pp: 2567-2570.

CrossRef - Johnson Jr., A.T., 1990. Optimal linear phase digital filter design by one-phase linear programming. IEEE Trans. Circuits Syst., 37: 554-558.

CrossRefDirect Link