Using fractional delay to control the magnitudes and phases of integrators and differentiators

Similar documents
Closed-Form Design of Maximally Flat IIR Half-Band Filters

Maximally Flat Lowpass Digital Differentiators

ISSN (Print) Research Article. *Corresponding author Nitin Rawal

Design and Realization of Quantum based Digital Integrator

Digital Wideband Integrators with Matching Phase and Arbitrarily Accurate Magnitude Response (Extended Version)

Design of Biorthogonal FIR Linear Phase Filter Banks with Structurally Perfect Reconstruction

A FRACTIONAL DELAY FIR FILTER BASED ON LAGRANGE INTERPOLATION OF FARROW STRUCTURE

ON THE REALIZATION OF 2D LATTICE-LADDER DISCRETE FILTERS

COMPARISON OF CLASSICAL CIC AND A NEW CLASS OF STOPBAND-IMPROVED CIC FILTERS FORMED BY CASCADING NON-IDENTICAL COMB SECTIONS

Fuliband Differentiators

Design of Narrow Stopband Recursive Digital Filter

Design of FIR Nyquist Filters with Low Group Delay

Optimal Polynomial Control for Discrete-Time Systems

SHAPE OF IMPULSE RESPONSE CHARACTERISTICS OF LINEAR-PHASE NONRECURSIVE 2D FIR FILTER FUNCTION *

DESIGN OF QUANTIZED FIR FILTER USING COMPENSATING ZEROS

Applicatin of the α-approximation for Discretization of Analogue Systems

Shifted-modified Chebyshev filters

THERE are two major approaches to designing infinite impulse

Discretization of Fractional-Order Differentiators and Integrators

An Improved Design for the IIR Digital Fractional order Differential Filter using Indirect Discretization Approach

Analysis Of Ill-Conditioning Of Multi-Channel Deconvolution Problems

Digital Signal Processing

Design of Fractional Delay Filter Using Hermite Interpolation Method

New Design of Orthogonal Filter Banks Using the Cayley Transform

DIGITAL filters capable of changing their frequency response

Weighted Least-Squares Method for Designing Variable Fractional Delay 2-D FIR Digital Filters

EFFICIENT REMEZ ALGORITHMS FOR THE DESIGN OF NONRECURSIVE FILTERS

FRACTIONAL ORDER FILTER BASED ON FRACTIONAL CAPACITORS AND FRACTIONAL INDUCTOR

Appendix A Butterworth Filtering Transfer Function

Lecture 19 IIR Filters

IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS II: ANALOG AND DIGITAL SIGNAL PROCESSING, VOL. 49, NO. 2, FEBRUARY H(z) = N (z) D(z) =

A delayed parallel filter structure with an FIR part having improved numerical properties

THEORY OF MIMO BIORTHOGONAL PARTNERS AND THEIR APPLICATION IN CHANNEL EQUALIZATION. Bojan Vrcelj and P. P. Vaidyanathan

Physical Modeling Synthesis

Converting Infinite Impulse Response Filters to Parallel Form

Digital Signal Processing:

Magnitude F y. F x. Magnitude

VECTORIZED signals are often considered to be rich if

Symmetric Wavelet Tight Frames with Two Generators

Stable IIR Notch Filter Design with Optimal Pole Placement

T ulation and demodulation. It has applications not only

Research Article Design of One-Dimensional Linear Phase Digital IIR Filters Using Orthogonal Polynomials

Filter-Generating Systems

Enhanced Steiglitz-McBride Procedure for. Minimax IIR Digital Filters

a( i), where N i N ) is accurately d( i), where N i N. The derivative at ( ) ( ) ( )

Use: Analysis of systems, simple convolution, shorthand for e jw, stability. Motivation easier to write. Or X(z) = Z {x(n)}

Digital Signal Processing 2/ Advanced Digital Signal Processing, Audio/Video Signal Processing Lecture 10, Frequency Warping, Example

UNIT - III PART A. 2. Mention any two techniques for digitizing the transfer function of an analog filter?

DISCRETE-TIME SIGNAL PROCESSING

Pseudo-fractional ARMA modelling using a double Levinson recursion

On the Designing of Fractional Order FIR Differentiator Using Radial Basis Function and Window

R13 SET - 1

NEW STEIGLITZ-McBRIDE ADAPTIVE LATTICE NOTCH FILTERS

Design of Coprime DFT Arrays and Filter Banks

Efficient signal reconstruction scheme for timeinterleaved

Modified Pole Re-position Technique for Optimal IIR Multiple Notch Filter Design

A.1 THE SAMPLED TIME DOMAIN AND THE Z TRANSFORM. 0 δ(t)dt = 1, (A.1) δ(t)dt =

FILTER DESIGN FOR SIGNAL PROCESSING USING MATLAB AND MATHEMATICAL

Lapped Unimodular Transform and Its Factorization

Adaptive MMSE Equalizer with Optimum Tap-length and Decision Delay

Oversampling Converters

FIBER Bragg gratings are important elements in optical

Digital Signal Processing

Examples. 2-input, 1-output discrete-time systems: 1-input, 1-output discrete-time systems:

H Optimal Nonparametric Density Estimation from Quantized Samples

GENERALIZED DEFLATION ALGORITHMS FOR THE BLIND SOURCE-FACTOR SEPARATION OF MIMO-FIR CHANNELS. Mitsuru Kawamoto 1,2 and Yujiro Inouye 1

Filter structures ELEC-E5410

On the Frequency-Domain Properties of Savitzky-Golay Filters

4214 IEEE TRANSACTIONS ON SIGNAL PROCESSING, VOL. 54, NO. 11, NOVEMBER 2006

Lecture 3 - Design of Digital Filters

DESIGN OF INFINITE IMPULSE RESPONSE (IIR) FILTERS WITH ALMOST LINEAR PHASE CHARACTERISTICS

Two Dimensional Linear Phase Multiband Chebyshev FIR Filter

Filter Banks with Variable System Delay. Georgia Institute of Technology. Atlanta, GA Abstract

Design of Infinite Impulse Response (IIR) filters with almost linear phase characteristics via Hankel-norm approximation

Transform analysis of LTI systems Oppenheim and Schafer, Second edition pp For LTI systems we can write

Minimax Design of Complex-Coefficient FIR Filters with Low Group Delay

LINEAR-PHASE FIR FILTER DESIGN BY LINEAR PROGRAMMING

Basic Multi-rate Operations: Decimation and Interpolation

Butterworth Filter Properties

Let H(z) = P(z)/Q(z) be the system function of a rational form. Let us represent both P(z) and Q(z) as polynomials of z (not z -1 )

Design of Stable IIR filters with prescribed flatness and approximately linear phase

IEEE TRANSACTIONS ON SIGNAL PROCESSING, VOL. 58, NO. 4, APRIL X/$ IEEE

Complexity reduction in low-delay Farrowstructure-based. filters utilizing linear-phase subfilters

The DFT as Convolution or Filtering

DSP Design Lecture 2. Fredrik Edman.

Tunable IIR Digital Filters

Correlator I. Basics. Chapter Introduction. 8.2 Digitization Sampling. D. Anish Roshi

Multirate Digital Signal Processing

DSP Configurations. responded with: thus the system function for this filter would be

Quadrature-Mirror Filter Bank

Chapter 7: Filter Design 7.1 Practical Filter Terminology

DIGITAL SIGNAL PROCESSING UNIT III INFINITE IMPULSE RESPONSE DIGITAL FILTERS. 3.6 Design of Digital Filter using Digital to Digital

Theory and Problems of Signals and Systems

A UNIFIED APPROACH TO THE DESIGN OF IIR AND FIR NOTCH FILTERS

z-transform Chapter 6

EE 521: Instrumentation and Measurements

MITOCW watch?v=jtj3v Rx7E

ELEG 305: Digital Signal Processing

(Refer Slide Time: )

Design of digital differentiators and integrators of order 1 2

Transcription:

Using fractional delay to control the magnitudes and phases of integrators and differentiators M.A. Al-Alaoui Abstract: The use of fractional delay to control the magnitudes and phases of integrators and differentiators has been addressed. Integrators and differentiators are the basic building blocks of many systems. Often applications in controls, wave-shaping, oscillators and communications require a constant 908 phase for differentiators and 2908 phase for integrators. When the design neglects the phase, a phase equaliser is often needed to compensate for the phase error or a phase lock loop should be added. Applications to the first-order, Al-Alaoui integrator and differentiator are presented. A fractional delay is added to the integrator leading to an almost constant phase response of 2908. Doubling the sampling rate improves the magnitude response. Combining the two actions improves both the magnitude and phase responses. The same approach is applied to the differentiator, with a fractional sample advance leading to an almost constant phase response of 908. The advance is, in fact, realised as the ratio of two delays. Filters approximating the fractional delay, the finite impulse response (FIR) Lagrange interpolator filters and the Thiran allpass infinite impulse response (IIR) filters are employed. Additionally, a new hybrid filter, a combination of the FIR Lagrange interpolator filter and the Thiran allpass IIR filter, is proposed. Methods to reduce the approximation error are discussed. 1 Introduction Rabiner and Steiglitz in [1] noted that introducing a half sample delay to an ideal differentiator does not change the magnitude response; however, the phase response will become linear [2]. The magnitude and phase responses of the ideal differentiator are shown in Fig. 1a and b, respectively. The Nyquist frequency is normalised to 1, and the sampling frequency is twice the Nyquist frequency. The ideal differentiator has a constant phase response of 908 (Fig. 1b). We can clearly see the discontinuity of the phase at the Nyquist frequency. An ideal half sample delay has a magnitude of unity (Fig. 1c) and a linear phase (Fig. 1d). Delaying the response of the ideal differentiator by a half sample results in a linear phase as shown in Fig. 1f. (The magnitude is not affected when the delay is ideal as shown by comparing Fig. 1e with Fig. 1a.) This procedure is used in [1] to overcome the problem of phase discontinuity at the Nyquist frequency. In contrast, Tseng [3] used fractional delay to improve the magnitude response of the Simpson integrator. The transfer function of the Simpson integrator is shown as H S (z) ¼ T (1 þ 4z 1 þ z 2 ) 3 (1 z 2 ) (1) of the Simpson integrator to H 0:5S (z) ¼ T (1 þ 4z 1=2 þ z 1 ) 6 (1 z 1 (2) ) Thus, the relationship between the transfer functions of the Simpson and the modified Simpson integrators may be expressed as H 0:5S (z) ¼ 1 2 H S(z 1=2 ) (3) The problem of how to implement the half sample delay, or for that matter any fractional delay, was developed with the advances in multirate digital signal processing as implementation of successive interpolation and decimation and vice versa. Finding efficient design methods of fractional delay filters is an active research area [4 16]. To implement the fractional delay element z 21/2, Tseng employed two of the methods proposed by Laakso et al. [9], the finite impulse response (FIR) fractional delay filter and the infinite impulse response (IIR) fractional delay filter. Thus, a pure integer delay z 2N is cascaded with the modified Simpson integrator as G N (z) ¼ z N H 0:5S (z) He reduced the sampling interval from T to 0.5 T. Reducing the sampling interval to 0.5 T modifies the transfer function ¼ T (z N þ 4z (Nþ(1=2)) þ z N 1 ) 6 (1 z 1 ) (4) # The Institution of Engineering and Technology 2007 doi:10.1049/iet-spr:20060246 Paper first received 2nd August 2006 and in revised form 10th March 2007 The author is with the Department of Electrical and Computer Engineering, The American University of Beirut, Beirut, Lebanon E-mail: adnan@aub.edu.lb The problem is reduced to designing the fractional delay element z 2D, where D ¼ N þ (1/2). Tseng found that the integrators obtained using the FIR-based design have better performance than those obtained using the allpass-based design; thus, only his results using the FIR-based design will be reported in IET Signal Process., 2007, 1, (2), pp. 107 119 107

Fig. 1 Ideal differentiator (reproduced from [1]) a Magnitude response of an ideal differentiator of an ideal differentiator c Magnitude response of an ideal half sample delay d Phase response of an ideal half sample delay e Magnitude response of an ideal differentiator delayed by half a sample f Phase response of an ideal differentiator delayed by half a sample 108 IET Signal Process., Vol. 1, No. 2, June 2007

Fig. 2 Conventional Al-Alaoui integrator a Magnitude response compared to the response of an ideal integrator b Absolute magnitude error with respect to the ideal response c Phase response this paper. For the FIR-based design, he reported two cases. In the first case, he chose D ¼ 1/2 and N ¼ 0, which yielded the half sample delay approximation z 1=2 1=2 þð1=2þ z 1. The resulting transfer function is the same as that of the conventional trapezoidal rule. For the second case, he chose D ¼ 1.5 and N ¼ 1, which yielded the one and a half sample delay Fig. 3 Conventional Al-Alaoui differentiator a Magnitude response compared to the response of an ideal differentiator b Absolute magnitude error with respect to the ideal response c Phase response of conventional Al-Alaoui compared to the delayed ideal differentiator approximation z 3=2 1=8 þð3=4þz 1 þð3=8þz 2. The resulting transfer function of the integrator is G 1 (z) ¼ T ( 1 þ 8z 1 þ 5z 2 ) 12 (1 z 1 (5) ) The magnitude of the frequency response of the above integrator is better than that of the trapezoidal integrator. IET Signal Process., Vol. 1, No. 2, June 2007 109

Fig. 4 Phase response of the delayed Al-Alaoui integrator However, it introduces an additional sample delay, and it loses the 2908 phase shift. This paper addresses the use of fractional delay methods to control the magnitudes and/or phases of integrators and differentiators with the aim of bringing them to approximate the magnitudes and/or phases of ideal integrators and differentiators. Applications to the first-order, Al-Alaoui integrator and differentiator are presented. The magnitude and phase responses of the Al-Alaoui integrator are shown in Fig. 2. The Al-Alaoui integrator is obtained by interpolating the transfer function of the Fig. 6 Delayed Al-Alaoui integrator: allpass filter case Fig. 5 Delayed Al-Alaoui integrator: FIR filter case (Lagrange interpolation) 110 trapezoidal integrator with either the forward rectangular or the backward rectangular integrators [17 19]. The transfer functions of the forward rectangular, the backward rectangular and the trapezoidal digital integrators are given, respectively, by z 1 H FR (z) ¼ T 1 z 1 (6a) 1 H BR (z) ¼ T 1 z 1 (6b) H TR (z) ¼ T 1 þ z 1 2 1 z 1 (7) where T is the sampling period. The interpolation takes the form H AI (z) ¼ ah BR (z) þ (1 a)h TR (z) (8) Substituting (6b) and (7) into (8), with a ¼ 3/4 yields the minimum phase integrator H AI (z) ¼ 7 T z þ (1=7) ¼ 7 T 1 þ (1=7)z 1 8 z 1 8 1 z 1 (9) It is to be noted that a maximum phase integrator would have been obtained if the forward rectangular rule, (6a), was used instead of (6b) in (8). However, reflecting the resulting zero outside the unit circle to inside the unit circle and compensating for the magnitude yields the minimum phase integrator of (9) [18 20]. We can see that the phase response is almost linear. Inverting the transfer function of (9) results in the transfer function of the differentiator [4, 7], known as the Al-Alaoui IET Signal Process., Vol. 1, No. 2, June 2007

operator [20, 21], and is given as H AD (z) ¼ 8(z 1) 7T(z þ (1=7)) ¼ 8(1 z 1 ) 7T(1 þ (1=7)z 1 ) (10) The resulting differentiator is stable, with a pole at z ¼ 21/7, and has an almost linear phase as shown in Fig. 3c. A fractional delay is added to the integrator leading to an almost constant phase response of 2908. We would like to reach an almost constant 908 phase for the Al-Alaoui differentiator. Hence, the reverse of the process mentioned previously for linearising the phase of the ideal differentiator is applied: introducing a half sample advance to the Al-Alaoui differentiator will lead to an almost constant 908 phase response. It should be noted that the approach applies to other differentiators and integrators with linear phases, or approximately linear phases, such as the second-order Al-Alaoui integrators and differentiators [22 24]. In fact, it was applied in [3] to the Simpson integrator, which becomes one of the second-order Al-Alaoui differentiators when its transfer function is inverted. However, this paper will delineate only the first-order Al-Alaoui integrators and differentiators and, for brevity, the term first-order will be suppressed. 2 Conventional Al-Alaoui integrators delayed by half a sample 2.1 Ideal fractional delay The transfer function of the Al-Alaoui integrator is given by (9). Its phase response shown in Fig. 2c is almost linear. However, our objective is to obtain a constant phase response of 2908. Delaying the response of the conventional Al-Alaoui integrator by half a sample yields H 2 (z) ¼ z 1=2 H AI (z) ¼ 7 T 1 þ (1=7)z 1 8 z 1=2 1 z 1 (11) The magnitude response of this integrator is the same as that of the conventional integrator shown in Fig. 2a and b. We can clearly see from Fig. 4 that the phase is almost constant at 2908, with less than 10% deviation, ranging from 2988 to 2908 approximately. The maximum error is approximately 8.2138 (i.e. 9.1%) at 0.5447 of the Nyquist frequency. An ideal half sample delay is available in applications where multirate processing is involved. However, in other cases, we need to approximate the value between samples to obtain the required fractional delay. For this purpose, we use two methods among the tools discussed in [9]: the Fig. 7 Double-rate Al-Alaoui integrator and double-rate Simpson integrator Fig. 8 Double-rate Al-Alaoui integrator: FIR filter case (Lagrange interpolation) IET Signal Process., Vol. 1, No. 2, June 2007 111

Fig. 10 Phase response of the combined double-rate Al-Alaoui integrator Lagrange interpolation with N ¼ 5, L ¼ 10 and d ¼ 0.5 are shown in Fig. 5. The magnitude error is the same as the conventional Al-Alaoui integrator at low frequencies. However, it increases after 0.45 of the Nyquist frequency. The phase is almost 908 at low frequencies. The maximum phase error is 7.838 at 0.488 in the interval [0 0.8] of the Nyquist frequency. The interval [0 0.8] is the interval where the error is tolerable for the Lagrange interpolation case. The inaccuracies at high frequencies are because of the approximation error. Fig. 9 Double-rate Al-Alaoui integrator: allpass filter case FIR case (Lagrange interpolation) and the allpass filter case. These methods are attractive because the delay filter coefficients are obtained in closed form. 2.2 Fractional delay approximated by an FIR filter (Lagrange interpolation) 2.3 Fractional delay approximated by an allpass filter (Thiran allpass IIR filter) With this approximation, a total delay D is approximated by [3, 4, 9] z D a N þ a N 1 z 1 þþa 1 z (N 1) þ z N 1 þ a 1 z 1 þþa N 1 z (N 1) þ a N z N, a k ¼ ( 1) k C N k Y N n¼0 N n D N k n D (13) where C k N ¼ N!/k!(N 2 k)! and D ¼ N þ d. To delay the response only by the fractional part d, we multiply the With this approximation, a total delay D is approximated by [3, 9] z D XL n¼0 h(n)z n, h(n) ¼ YL k¼0,k=n D k n k (12) The filter-order L is chosen such that (L 1)=2 D (L þ 1)=2. Moreover, the total delay D is expressed as D ¼ N þ d, where N is the integer part of the delay and d the fractional part. The integer part of the delay is needed to increase the filter order to obtain a better approximation of the fractional delay. However, this will affect the phase response and the required 2908 phase will not be obtained. To solve this problem and delay the response only by the fractional part d, we multiply the integrator s transfer function by z N d =z N instead of z N d, where z N d is approximated by the FIR filter in (12). The magnitude and frequency responses of the delayed Al-Alaoui integrator, with the delay approximated by 112 Fig. 11 Phase response of the delayed double-rate Al-Alaoui integrator IET Signal Process., Vol. 1, No. 2, June 2007

Multiplying the numerator and denominator of (9) by (1 þ z 21/2 ) yields H 3 (z) ¼ 7 T 1 þ (8=7)z 1=2 þ (1=7)z 1 16 1 z 1 ¼ T 7 þ 8z 1=2 þ z 1 16 1 z 1 (15) The magnitude error of the double-rate Al-Alaoui integrator at high frequencies is superior to that of the double-rate Simpson integrator as shown in Fig. 7a. The phase response is shown in Fig. 7b. It is to be noted that the double-rate operation does not change the phase. We implement the fractional delay element using the tools in [9] by cascading a pure integer delay z 2N with the proposed integrator. However, to keep the almost linear phase of the conventional Al-Alaoui integrator, we also divide the transfer function by z 2N. Hence H 3 (z) ¼ z N z N H 3(z) ¼ T 7z N þ 8z (Nþ1=2) þ z (Nþ1) 16 z N z N 1 (16) Again the problem is to approximate the delay element z 2(N þ 1/2). Note that when multirate processing is Fig. 12 Delayed double-rate Al-Alaoui integrator: FIR filter case (Lagrange interpolation) integrator s transfer function by z 2N 2d /z 2N instead of z 2N 2 d,wherez 2N 2d is approximated by the allpass filter in (13). The frequency responses of the delayed Al-Alaoui integrator, with the delay approximated by the Thiran allpass IIR filter with N ¼ 5andd ¼ 0.5 are shown in Fig. 6. The magnitude error is the same as the conventional Al-Alaoui. Hence, using the allpass filter approximation to enhance the phase response did not entail any penalty on the magnitude response. The phase is almost 908 at low frequencies. The maximum phase error is 7.278 at 0.43 in the interval [0 0.675] of the Nyquist frequency. The interval [0 0.675] is the interval where the error is tolerable for the allpass filter case. The inaccuracies at high frequencies are, again, because of the approximation error. 3 Double-rate Al-Alaoui integrator 3.1 Ideal fractional delay Using a sampling period of T/2 (i.e. doubling the sampling rate), (9) becomes H 3 (z) ¼ 7 (T=2) 1 þ (1=7)z 1=2 8 1 z 1=2 ¼ 7 T 1 þ (1=7)z 1=2 16 1 z 1=2 (14) Fig. 13 Delayed double-rate Al-Alaoui integrator: allpass filter case IET Signal Process., Vol. 1, No. 2, June 2007 113

Fig. 15 Advanced Al-Alaoui differentiator: FIR filter case (Lagrange interpolation) Fig. 14 Combined delayed double-rate Al-Alaoui integrator : comparison of combined delayed double-rate Al-Alaoui, ideal double-rate Al-Alaoui and conventional Al-Alaoui of combined double-rate Al-Alaoui available, the values half way between the samples are already available and there is no need for approximation or use of z 2N. (The values of Fig. 7 are then realisable in practice.) We use the two methods we employed in Section 2: The FIR filter method using Lagrange interpolation and the allpass filter method. 3.2 Double-rate Al-Alaoui integrator with fractional delay approximated by an FIR filter (Lagrange interpolation) We implement (16) using the fractional delay approximation of (12). The results are shown in Fig. 8. By comparing Fig. 8a with Fig. 2b, we see that the magnitude error at low frequencies is lower for the FIR case. However, it increases slightly above that of the conventional Al-Alaoui integrator at high frequencies. The phase response is linear in the low-frequency range (Fig. 8b) similar to Fig. 7b, but linearity is lost at high frequencies because of the approximation filter error. comparing Fig. 9a with Fig. 2b, we see that the magnitude error at low frequencies is lower for the allpass case. However, it increases slightly above that of the conventional Al-Alaoui integrator at high frequencies. The phase response is linear in the low-frequency range (Fig. 9b) similar to Fig. 7b, but linearity is lost at high frequencies because of the approximation filter error. 3.4 Combined double-rate Al-Alaoui integrator (combination of FIR and allpass cases) In Fig. 8a, the response of the approximated filter is a little below the ideal response at high frequencies. However, in Fig. 9a, the response of the approximated filter is a little above the ideal response at high frequencies. This leads us to study the possibility of combining the two filters in order to improve the magnitude response (minimise the magnitude error with respect to the ideal case). We seek a result of the form where H 3 combined ¼ ah 3 FIR þ bh 3 allpass (17) 3.3 Double-rate Al-Alaoui integrator with fractional delay approximated by an allpass filter We implement (16) using the fractional delay approximation of (13). The results are shown in Fig. 9. By 114 a ¼ Ð p 0 Ð p 0 jh 3 allpass j 1=vdv jh 3 allpass j 1=vdvþ Ð p, 0 jh 3 FIR j 1=v dv IET Signal Process., Vol. 1, No. 2, June 2007

Fig. 16 Advanced double-rate Al-Alaoui differentiator: FIR filter case (Lagrange interpolation) Fig. 17 Advanced double-rate Al-Alaoui differentiator: allpass filter case b ¼ Ð p 0 Ð p 0 jh FIR j 1=v dv jh 3 allpass j 1=vdvþ Ð p 0 jh 3 FIR j 1=v dv We found a ¼ 0.55 and b ¼ 0.45. Hence, we define (18) H 3 combined ¼ 0:55 H 3 FIR þ 0:45 H 3 allpass (19) The magnitude errors of the combined double-rate Al-Alaoui integrator is almost identical to that of the ideal double-rate Al-Alaoui integrator (Fig. 7a), and is omitted for brevity. The phase response is shown in Fig. 10. 4 Double-rate Al-Alaoui integrator delayed by 0.2 samples 4.1 Ideal fractional delay In Section 2, we tried to enhance the phase response of the Al-Alaoui integrator to obtain a constant phase of 2908. In Section 3, we doubled the sampling rate to improve the magnitude response of the integrator. Now, we would like to combine the results to improve both the magnitude and phase responses at the same time. We want the double-rate Al-Alaoui integrator to yield a constant phase response of 2908. From Fig. 7b, we can see that the phase response is almost linear. Hence, adding the proper delay would give the desired result. The phase response at the normalised Nyquist frequency in Fig. 7b is 253.1528. The required delay d should be such that 253.152 þ 180 d ¼ 290, from which we obtain d ¼ 20.2047. We need to add a delay of 0.2047 samples to the transfer function of (15) H 4 (z) ¼ z 0:2047 H 3 (z) ¼ T 16 z 0:2047 7 þ 8z 1=2 þ z 1 1 z 1 (20) In the case when such a rate can be obtained (multirate applications), the magnitude error is the same as in Fig. 7a, and the phase response is shown in Fig. 11, where we can clearly see that the phase is almost constant at 2908. Note that the range extends approximately from 291.28 to 2908. The maximum error is around 1.28 (i.e. 1.3%) at 0.577 of the Nyquist frequency. This is indeed a better result than that of Fig. 4. (Using a delay of 0.2 samples instead of 0.2047 leads to a maximum error of 0.8658 at the Nyquist frequency. Hence, not sticking to the exact value does not have negative consequences in this case.) IET Signal Process., Vol. 1, No. 2, June 2007 115

Fig. 18 Improving the performance of the FIR filter a Group delay of an FIR fractional delay filter with N ¼ 5, L ¼ 10 and d ¼ 0.5 b Group delay of an FIR fractional delay filter with N ¼ 40, L ¼ 80 and d ¼ 0.5 c Phase response of delayed double-rate Al-Alaoui integrator using FIR filter from b d Phase response of advanced double-rate Al-Alaoui differentiator using FIR filter from b Now if we want to approximate the fractional delay by the methods used previously, we need to implement H 4 (z) ¼ z N 0:2047 z N ¼ T 16 z N z N H 3(z) 7z 2 N 0:2047 þ 8z (2 Nþ1=2þ0:2047) (2 Nþ1:2047) þ z z 2 N z 2 N 1 (21) By comparing Fig. 12a with Fig. 2b, we see that the magnitude error at low frequencies is lower for the FIR case. However, it increases slightly above that of the conventional Al-Alaoui integrator at high frequencies. The phase response is almost constant in the low-frequency range (Fig. 12b) similar to Fig. 11, but this is not the case at high frequencies because of the approximation filter error. In fact, we need to multiply [(z 2N /z 2N )H 3 (z)], implemented as discussed in Sections 2.2 and 2.3, by the approximation of z 2N 2 0.2047 /z 2N using any of the two approximation methods. 4.2 Delayed double-rate Al-Alaoui integrators with fractional delay approximated by an FIR filter (Lagrange interpolation) Here, both the half sample and 0.2 sample delays are approximated using the Lagrange interpolation method. The results of approximating all the delays in the transfer function of (21) by Lagrange interpolation are shown in Fig. 12. 116 4.3 Delayed double-rate Al-Alaoui integrators with fractional delay approximated by an allpass filter Here, both the half sample and 0.2 sample delays are approximated using the allpass filter method (Thiran IIR). The results of approximating all the delays in the transfer function of (21) by the allpass filter method are shown in Fig. 13. By comparing Fig. 13a with Fig. 2b, we see that the magnitude error at low frequencies is lower for the allpass case. However, it increases slightly above that of the conventional Al-Alaoui integrator at high frequencies. The phase response is almost constant in the lowfrequency range (Fig. 13b) similar to Fig. 11, but this is not the case at high frequencies because of the approximation filter error. IET Signal Process., Vol. 1, No. 2, June 2007

4.4 Combined delayed double-rate Al-Alaoui integrators (combination of FIR and allpass cases) In Fig. 12a, the response of the approximated filter is a little below the ideal response at high frequencies. However, in Fig. 13a, the response of the approximated filter is a little above the ideal response at high frequencies. Hence, we combine the two filters in order to improve the magnitude response (minimise the magnitude error with respect to the ideal case), as in Section 3.4. Applying (13), we found a ¼ 0.45 and b ¼ 0.55 H 4 combined ¼ 0:45H 4 FIR þ 0:55H 4 allpass (22) A comparison between the magnitude errors of the combined delayed double-rate Al-Alaoui, ideal double-rate Al-Alaoui and conventional Al-Alaoui integrators shows the superiority of the first (Fig. 14a). The phase response is shown in Fig. 14b. 5 Applying the same approach to the Al-Alaoui differentiator The transfer function of the Al-Alaoui differentiator is given by (10). The magnitude and phase responses of this differentiator are shown in Fig. 3. We can see that the phase response is almost linear. To get a constant phase response of 908 and to improve the magnitude response of this differentiator, we use the same approach used for the integrator. Each of the transfer functions that should be considered corresponds to the inverse of a transfer function used in one of the previous sections. The main problem to be considered is the use of a fractional phase advance instead of a fractional delay. A filter with a response z 1/2 is non-causal. In practice, a response of z 2N /z 2N 2 1/2 is used, where N is an integer delay. Hence we need to delay the denominator by half a sample when we need a phase advance of half a sample. The problem is again the fractional delay problem, which can be solved using any of the filters presented in Sections 2.2 and 2.3. Some of the results, for brevity, are shown in Figs. 15 17. 6 Reducing the approximation error This section discusses some solutions to improve the performance of the delay approximation filters. Fig. 18a shows the group delay of the FIR filter approximating half a sample delay with N ¼ 5 and L ¼ 10. This is the filter used in all the previously discussed simulations involving Lagrange interpolation. The result of increasing the filter order form 10 to 80 is shown in Fig. 18b (N ¼ 40, L ¼ 80). The result of applying this filter instead of the previous one to the delayed double-rate Al-Alaoui integrator is presented in Fig. 18c, and to the advanced double-rate Al-Alaoui differentiator is presented in Fig. 18d. Comparison of Fig. 18c and d with Figs. 12b and 16b, respectively, definitely proves the better performance of the filter in Fig. 18b. The same reasoning applies to the allpass filter case (compare Figs. 19b with 13b and Figs. 19c with 17b). The improvements mentioned above come at the expense of a great increase in filter complexity. We said that to approximate z 20.5, we approximate z 2N 20.5 and divide by z 2N. But z 2N has a purely linear phase. The error comes from z 2N 20.5. Hence, dividing by an approximating function having a similar phase error might lead to phase Fig. 19 Improving the performance of the allpass filter a Group delay of an allpass fractional delay filter with N ¼ 40 and d ¼ 0.5 b Phase reponse of delayed double rate Al-Alaoui integrator using allpass filter from a c Phase response of advanced double rate Al-Alaoui differentiator using allpass filter from a errors cancelling out each other: for example, z 20.5 ¼ z 2N 20.6 /z 2N 20.1 (or z þ0.5 ¼ z 2N 20.1 2N 20.6 /z 2N 20.6 for the differentiator case). We can approximate z and z 2N 20.1 using two separate simple FIR filters with N ¼ 5 and L ¼ 10 [the parameters are computed using (12)]. The division will lead to major amelioration regarding phase error. In fact, we can see this in Fig. 20 where we used the previous method to compute the phase response IET Signal Process., Vol. 1, No. 2, June 2007 117

Fig. 20 Phase response of delayed conventional Al-Alaoui integrator The FIR filter used approximates z 20.5 by approximating the ratio z 2N 20.6 2N 20.1 /z figure is omitted for brevity. Comparison of Fig. 20 with Fig. 5b, and the minus of Fig. 20 with Fig. 15b, respectively, shows the usefulness of this method. We should also note that if sufficient oversampling is possible, we can move the Nyquist frequency to less than half of the sampling frequency where the error is small. To demonstrate the efficiency of the proposed design method, we compare it to the conventional least-squares (LS) approach in the frequency domain. Hence, we use the Matlab function invfreqz : [b, a] ¼ invfreqz (h, w, n, m) which returns the real numerator and denominator coefficients in vectors b and a of the transfer function whose complex frequency response is given in vector h at the frequency points specified in vector w. Scalars n and m specify the desired orders of the numerator and denominator polynomials H(z) ¼ B(z) A(z) ¼ b(1) þ b(2)z 1 þ b(3)z 2 þþb(nþ1)z n a(1) þ a(2)z 1 þ a(3)z 2 þþa(m þ 1)z m (23) invfreqz finds b and a in X p min W(k)jh(k)A(v(k)) B(v(k))j 2 (24) b,a k¼1 by creating a system of linear equations and solving them. Here A(v(k)) ¼ A(z)j z¼v(k), B(v(k)) ¼ B(z)j z¼v(k), p is the number of frequency points (the length of h and v), and W(k) is a weighting vector. This algorithm solves the direct problem of minimising the weighted sum of the squared error between the actual and the desired frequency response points. We consider, as an example, the case of the conventional Al-Alaoui integrator delayed by half a sample with N ¼ 5, and compare it to a filter of the same order approximating the ideal integrator, obtained using (23) and (24). The results displayed in Fig. 21 show the superiority of the proposed design method over the LS method. The results were obtained using uniform weighting, W(k) ¼ 1 for all k, while v (k ¼ 1) ¼ 0 and v (k ¼ p) ¼ p in steps of 0.01. 7 Conclusions Fig. 21 Comparison of the delayed Al-Alaoui integrator to the LS integrator of the delayed conventional Al-Alaoui integrator. Using the method to compute the phase response of the advanced conventional Al-Alaoui differentiator (the FIR filter used approximates z þ0.5 by approximating the ratio z 2N 20.1 / z 2N 20.6 ) yields a phase response which is simply minus the phase response of the integrator and the corresponding 118 A fractional delay was added to the conventional first-order Al-Alaoui integrators, and an almost constant phase of 2908 was obtained. Then the sampling rate was doubled by interpolating the values between the samples, and the magnitude error was reduced. Delaying the double-rate integrator led to improvements in both magnitude and phase responses. In addition to the ideal delay (multirate applications), approximations using the FIR and allpass filter were investigated. The allpass filter yielded better results than the FIR filter with respect to the magnitude error. A proper combination of both approximations usually leads to the best results. The coefficients of each filter in the combination were chosen based on the observation of the filters responses. Similar procedures were applied to the conventional firstorder Al-Alaoui differentiators using a fractional advance, instead of a fractional delay, and an almost constant phase of þ908 was obtained. The approach may be applied to other differentiators and integrators with linear, or approximately linear, phases. IET Signal Process., Vol. 1, No. 2, June 2007

8 Acknowledgments It is indeed a pleasure to acknowledge E. Yaacoub, G. Deeb, K. Joujou and I. Al-Kamal for their invaluable help in the production of this work. Thanks are also due to the outstanding reviewers and the Editor-in-Chief whose constructive comments contributed considerably to the improvement of the paper. This research was supported, in part, by the University Research Board of the American University of Beirut. 9 References 1 Rabiner, L.R., and Steiglitz, K.: The design of wide-band recursive and nonrecursive digital differentiators, IEEE Trans. Audio Electroacoust., 1970, 18, (2), pp. 204 209 2 Oppenheim, A.V., Wilsky, A.S., and Nawab, S.H.: Signals and systems (Prentice-Hall, Englewood Cliffs, NJ, 1997, 2nd edn.) 3 Tseng, C.C.: Digital integrator design using Simpson rule and fractional delay filter, IEE Proc., Vis. Image Signal Process., 2006, 153, (1), pp. 79 85 4 Thiran, J.-P.: Recursive digital filters with maximally flat group delay, IEEE Trans. Circuit Theory, 1971, CT-18, pp. 659 664 5 Crochiere, R.E., and Rabiner, L.R.: Multirate digital signal processing (Prentice-Hall, Englewood Cliffs, NJ, 1983) 6 Minocha, S., Dutta Roy, S.C., and Kumar, B.: A note on the FIR approximation of a fractional sample delay, Int. J. Circuit Theory Appl., 1993, 21, (3), pp. 265 274 7 Vaidyanathan, P.P.: Multi rate systems and filter banks (Prentice-Hall, Englewood Cliffs, NJ, 1993) 8 Fliege, N.J.: Multirate digital signal processing (Wiley, New York, 1994) 9 Laakso, T.I., Valimaki, V., Karjalainen, M., and Laine, U.K.: Splitting the unit delay: tools for fractional delay filter design, IEEE Signal Process., Mag., 1996, 13, (1), pp. 30 60 10 Tassart, S., and Depalle, P.: Analytical approximations of fractional delays: Lagrange interpolators and allpass filters. Proc. ICASSP-97, Munich, Germany, April 1997, vol. 1, pp. 455 458 11 Luengo, D., Pantaleon, C.J., and Santamaria, I.: Design of simultaneous sampling systems based on fractional delay Lagrange filters, IEEE Trans. Circuits Syst. II, 2000, 47, (5), pp. 482 485 12 Valimaki, V., and Laakso, T.I.: Principles of fractional delay filters. IEEE ICASSP 00, Istanbul, Turkey, June 2000, vol. 6, pp. 3870 3873 13 Pei, S.-C., and Wang, P.-H.: Closed-form design of maximally flat FIR Hilbert transformers, differentiators, and fractional delayers by power series expansion, IEEE Trans. Circuits Syst. I, 2001, 48, (4), pp. 389 398 14 Nagahara, M., and Yamamoto, Y.: Optimal design of fractional delay filters. Proc. 42nd IEEE Conf. Decision and Control, Maui, Hawaii, December 2003, pp. 6539 6544 15 Pei, S.-C., and Wang, P.-H.: Closed-form design of all-pass fractional delay filters, IEEE Signal Process. Lett., 2004, 11, (10), pp. 788 791 16 Mitra, S.K.: Digital signal processing (McGraw-Hill, New York, 2006, 3rd edn.) 17 Al-Alaoui, M.A.: Novel digital integrator and differentiator, Electron. Lett., 1993, 29, pp. 376 378 [see also Errata, Electron. Lett., 1993, 29, (10), p. 934] 18 Al-Alaoui, M.A.: Filling the gap between the bilinear and the backward difference transforms: an interactive design approach, Int. J. Elec. Eng. Educ., 1997, 34, (4), pp. 331 337 19 Al-Alaoui, M.A.: Al-Alaoui operator and the a-approximation for discretization of analog systems, Facta Univ. Ser. Elec. Energ., 2006, 19, (1), pp. 143 146 20 Al-Alaoui, M.A.: Novel approach to designing digital differentiators, Electron. Lett., 1992, 28, (15), pp. 1376 1378 21 Chen, Y.Q., and Moore, K.L.: Discretization schemes for fractional order differentiators and integrators, IEEE Trans. Circuits Syst. I, 2002, 49, (3), pp. 363 367 22 Al-Alaoui, M.A.: A class of second order integrators and lowpass differentiators, IEEE Trans. Circuits Syst. I, 1995, 42, (4), pp. 220 223 23 Al-Alaoui, M.A.: Novel IIR differentiator from the Simpson integration rule, IEEE Trans. Circuits Syst. I, 1994, 41, (2), pp. 186 187 24 Al-Alaoui, M.A.: Novel stable higher order s-to-z transforms, IEEE Trans. Circuits Syst. I, 2001, 48, (11), pp. 1326 1329 IET Signal Process., Vol. 1, No. 2, June 2007 119