Abstract

All-pass filter design can be generally achieved by solving a system of linear equations. The associated matrices involved in the set of linear equations can be further formulated as a Toeplitz-plus-Hankel form such that a matrix inversion is avoided. Consequently, the optimal filter coefficients can be solved by using computationally efficient Levinson algorithms or Cholesky decomposition technique. In this paper, based on trigonometric identities and sampling the frequency band of interest uniformly, the authors proposed closed-form expressions to compute the elements of the Toeplitz-plus-Hankel matrix required in the least-squares design of IIR all-pass filters. Simulation results confirm that the proposed method achieves good performance as well as effectiveness.

1. Introduction

Digital all-pass filters have received much attention in many signal processing applications such as notch filtering, phase equalization in communication systems, multichannel filter bank, construction of a wavelet, and image compression [19]. The most commonly used design methods can be classified into four categories: maximally flat design [10], least-squares approximation [1115], minimax approximation [1618], and cepstral coefficients method [19, 20]. The aforementioned approaches [1118] include solving a set of linear equations, using a linear programming method, or utilizing a generalized exchange algorithm. Several different optimization methods have been developed based on efficiency or applications. No matter what methods are used, the computation increases significantly as the filter length increases.

In the literature [13], an efficient and robust weighted least-squares (WLS) method is proposed to design IIR all-pass filters that have a least-squares or an equiripple phase error response. The method is based on formulating a weighted square error reflecting the difference between the desired phase and the phase response of the design IIR all-pass filter in a quadratic form. The filter coefficients are then obtained by solving a system of linear equations which involves a Toeplitz-plus-Hankel matrix. Consequently, the optimal solution of this system of linear equations can be obtained efficiently using Cholesky decomposition or Levinson algorithm [2123]. These efficient algorithms require only complexity [2124] to compute the optimal solution. It is computationally efficient as compared to solving the linear equations by directly computing a matrix inversion which involves complexity. Furthermore, the computation of matrix inversion may cause numerical problems as the filter length is large. Therefore, the method proposed by Kidambi [13, 24] is not only efficient but also robust as applied to the filter design problems. It has been shown in [24] that the efficient algorithms do not result in numerical problem as the filter increases to 2000.

As observed from the elements of Toeplitz-plus-Hankel matrix, they are associated with the filter specifications when the design problem is specified. Therefore, trigonometric properties can be further used to reduce the computation. In this paper, based on trigonometric identities and uniformly sampling the band of interest, the elements of Toeplitz-plus-Hankel matrix can be further simplified as closed-form expressions. Simulation results indicate that the computations can be greatly reduced as compared to the efficient algorithm presented by [13].

This paper is organized as follows. In Section 2, the problem formulation of IIR all-pass filter is briefly reviewed. In Section 3, the closed-form expressions for Toeplitz-plus-Hankel matrix are investigated in detail. The analysis of computational requirements is stated in Section 4. The simulation and design examples are shown in Section 5 to verify the advantages of the proposed method. Finally, the conclusion is stated in Section 6.

2. Problem Formulation

The frequency response of an IIR all-pass filter with N real coefficients, , can be expressed as where the denominator is an FIR filter with frequency response and . It can be found that the magnitude response of is unit gain at all frequencies. The phase response of can be written as Given a desired phase response, , the purpose is to find the real coefficients such that phase errors can be minimized in the least-squares sense. The phase error response between and can be represented as

It is clear that the phase error response in (3) is a nonlinear representation of filter coefficients. Minimizing the phase error response directly will result in a highly nonlinear optimization problem. Based on the assumption of phase approximation presented by Kidambi [13], (2) can be alternatively rewritten as where If the phase response of the design IIR all-pass filter is very close to the desired phase, that is, , then the expression in (4) can be approximated as [13] where . After performing some mathematical treatment, (6) can be simplified as As a consequence, (7) can be expressed in a more compact form where Therefore, the objective function to be minimized in the least-squares sense can be formulated in a quadratic form as where is the number of frequency points at which the desired phase is sampled. By setting , for , a system of linear equations given by is easily obtained, where

Since Q is a real, symmetric, and positive-definite matrix, a unique solution is guaranteed. In solving the system of linear equations, a matrix inversion which involves complexity can be used directly. As the filter length is long, the computational complexity increases significantly. Furthermore, large filter length may cause the numerical problem when the matrix is ill conditioned. Therefore, algorithms with efficient to design and robust to avoid numerical problem should be used.

3. Proposed Closed-Form Expressions for Toeplitz-Plus-Hankel Matrix

Kidambi [13, 24] expanded the matrix Q into a sum of symmetric Toeplitz and Hankel matrix. Consequently, the system of linear equations can be written as . There exist several iterative and efficient algorithms [2123] which involve complexity that can be used to obtain the optimal filter. In this paper, some trigonometric identities [25] and uniformly sampled frequency points are exploited such that the Toeplitz and Hankel matrices can be further simplified as closed-form expressions. As a result, the computational requirements for the associated matrices can be greatly reduced especially for filter length is large.

Evidently, each element of matrix Q is the sum of cosine functions and can be written as a Toeplitz-plus-Hankel matrix form: These elements can be further expanded as the matrix formsTherefore, only the first row (or column) of has to be evaluated. There are distinct elements required to be computed for an Toeplitz matrix. Similarly, distinct elements at the first row (or column) and the last row (or column) are required to be computed for an Hankel matrix. Using the Toeplitz-plus-Hankel matrix, the computations can be significantly reduced. As observed from (12), the summation is performed on the discrete frequency points, so the computations are affected by the frequency sampling points. If L points are uniformly sampled in the band of interest , can be formulated as where is the spacing between two adjacent frequency points. To obtain the closed-form expressions, the following useful formulae which have been shown in [25] can be used: Consequently, only the closed-form expressions for Toeplitz matrix can be readily achieved for the case of , And for the case of , Similarly, the closed-form expression for the elements of the Hankel matrix can be written as It is clear that the Hankel matrix is not only dependent on cosine function but also dependent on the desired phase response. Considering for a Hilbert transformer with phase response is designed, it implies that . Accordingly, (18) can be further simplified as Performing the analogous procedure, the closed-form expression of d can be shown below: Using these closed-form expressions for the associated matrices in the system of linear equations, the computational complexity can be significantly reduced.

In order to verify the accuracy of the closed-form expressions for Toeplitz-plus-Hankel matrix calculated, a Hilbert transformer with length , , , and is designed [14]. Our results agree with those obtained from the method in [13]. It can be found that the difference occurs at approximately 15 decimal places of accuracy for the computations of Toeplitz-plus-Hankel matrix and vector . Therefore, the proposed method is not only efficient but also accurate for the computation of associated matrices. As the closed-form expressions of the associated matrices have been determined, the efficient Levinson algorithm [2123] or Cholesky decomposition can be used to solve the optimal solution.

The problem of Toeplitz-plus-Hankel system of equations can be converted to a block Toeplitz matrix using a block Levinson algorithm [2123]. The system is equivalent to the following symmetric system: where the matrix denotes the reverse matrix with unities on the antidiagonal and zeros elsewhere as shown below: It is clear that the coefficient matrix in (21) is Toeplitz and symmetric. Although, the size of the problem has increased by a factor of two, the desired solution is symmetric. As a consequence, an efficient block Levinson algorithm [21, 23] can be applied to solve this system. Furthermore, the symmetric split Levinson algorithm [22] that uses only symmetric quantities with lower complexity can also be exploited to solve this problem. Both algorithms have complexity to solve the Toeplitz-plus-Hankel system, as compared to the general algorithm which requires complexity.

4. Computational Requirements Analysis

As observed from the above mentioned matrices, the required computations include addition, multiplication, and trigonometric operation. To obtain each from (12) requires additions, multiplications, and trigonometric operations. There are distinct elements that need to be computed. Therefore, the total numbers of additions, multiplications, and trigonometric operations required to obtain are , , and , respectively. On the other hand, there are distinct elements in as shown in (20). Similarly, the total numbers of additions, multiplications, and trigonometric operations required to obtain are , , and , respectively.

To obtain the distinct elements of the Toeplitz matrix shown in (12), the total numbers of additions, multiplications, and trigonometric operations required to compute are , , and , respectively, for Kidambi’s method [13, 24]. In the proposed closed-form expressions of Toeplitz matrix shown in (17), the value of needs to be computed only once and stored for further use. Evidently, each requires 3 additions, 6 multiplications, and 3 trigonometric operations. Therefore, the total numbers of additions, multiplications, and trigonometric operations required to obtain are , , and , respectively.

Similar computational analysis can be found on Hankel matrix. It is concluded that by using the closed-form expressions for the Toeplitz-plus-Hankel matrix, the computational cost can be reduced significantly. Table 1 shows the comparison of the computations required for the matrices , H, T, and d. The total computation of the associated matrices is approximately and operations for Kidambi approach [13] and the proposed technique, respectively. That is the closed-form expressions of the matrices involved here depend only on the length of the filter while those of the matrices involved in [13] depend on both the length of the filter and the number of sampling grid. In general, the number of the sampling grid is approximately with for the compromise of integral squared error and computational requirements. It is notable that the required operations for the Toeplitz-plus-Hankel matrix of the proposed technique are , whereas the Kidambi method [13] requires computational complexity of . On the other hand, the conventional least-squares method requires complexity.

5. Simulation and Design Examples

In this section, MATLAB programming language is used to design an IIR all-pass filter having the same specifications as that of [13] for evaluating the performance of the proposed technique. The simulations are evaluated on the IBM PC with an Intel Pentium IV-2.67 GHz CPU and 512 MB RAM.

Example (Design of a Hilbert Transformer). For an IIR all-pass filter, the desired phase response is given by where and the frequency sampling grid is set to . The design results including designed impulse response, magnitude response, phase response, phase error response, and group delay response are shown in Figure 1. As observed from the analysis of computations and accuracy for Toeplitz-plus-Hankel matrix, the proposed technique achieves the same performance as those of the Kidambi method [13] and the least-squares method, whereas the computational complexity can be reduced considerably. Comparison of the design performance with method of [13] and the least-squares method is indistinguishable; we just show the proposed design results. Figure 1(a) shows the design impulse response. The design magnitude response of the IIR all-pass filter is plotted in Figure 1(b). It is obvious that the proposed method achieves unit magnitude response at the bands of interest. The error response of magnitude response can be seen in Figure 1(c). The maximum magnitude peak error response is approximately , which is very small. Figures 1(d) and 1(e) illustrate the phase response and error phase response, respectively. The constant desired group delay response and the designed one are compared at Figure 1(f). The maximum peak phase error response is 0.022 rad and the maximum peak group delay response is 0.5544. Moreover, the maximum pole radius is 0.9301, so the designed IIR all-pass filter not only is stable but also achieves excellent performance with effectiveness.

In order to compare the computational efficiency of the proposed technique, a Hilbert transformer with , , and varying filter lengths from to are designed. Figure 2 shows the comparison ofCPU design time required for the computations of associated matrices with efficient method in [13]. It is evident that the proposed closed-form expressions for the computations of the Toeplitz-plus-Hankel matrix grow very slowly as the filter length increases. However, the design CPU time of the robust and efficient method [13] increases rapidly as compared to the proposed method when the filter is long. This is because the proposed closed-form expressions depend only on the filter length while the Kidambi [13] method depends both on filter length and on frequency sampling grid. Therefore, it is concluded that the proposed method has the superiority in efficiency as well as design accuracy.

Although the Hilbert transformer is only considered for the derivation of the closed-form expression, the proposed method can also be applied to the quadrature mirror filter design that generally with a constant phase response is required [26].

6. Conclusion

The least-squares design of all-pass IIR filter can be formulated by solving a system of linear equations and the associated matrix can be further represented as a Toeplitz-plus-Hankel form. This system of linear equations can be solved using efficient algorithms with complexity. Based on the trigonometric identities and sampling the frequency domain uniformly, this paper presents a computationally more efficient and closed-form expressions for the simplification of Toeplitz-plus-Hankel matrix. As a result, not only the design accuracy can be achieved, but also the computational requirements can be reduced greatly.

Acknowledgments

The authors would like to thank the editor and anonymous reviewers for their valuable recommendations and comments that truly helped toward an effective presentation of the proposed paper. This work was supported in part by the National Science Council, Taiwan, under Contracts NSC 99-2221-E-0145-001 and NSC-100-2221-E-0145-005.