The present application claims priority to European Patent Office application No. 12163968.6 EP filed Apr. 12, 2012, the entire content of which is hereby incorporated herein by reference.
The invention concerns a filter system with infinite impulse response.
Infinite impulse response (IIR) filters are popular in digital signal processing. They are characterized by an impulse response function that is non-zero over an infinite length of time. IIR filters can be defined through a transfer function that is a mathematical representation in terms of spatial or temporal frequency, of the relation between the input and output signal of the filter.
In the case of a digital filter, the transfer function can be expressed in the z-domain as:
where a and b are the coefficients of the polynomials in the numerator and denominator, and K is the overall gain. (In the case of the direct realization, a and b are the coefficients of the created filter as well.) The technical realization of an IIR filter with a given transfer function is straightforward and can be done by means of well-known evaluations of the transfer function such as e.g. Direct Form I or Direct Form II.
Compared to finite impulse response (FIR) filters, IIR filters feature a small memory consumption and small calculational demand. One disadvantage of them is that—due to sensitivity for quantization and calculation errors—in certain cases the output of an IIR filter can become noisy, inaccurate or the filter can become unstable.
The problem that the present invention attempts to solve is therefore creating a filter system that has a particularly low sensitivity in the numerical representation of filter coefficients.
This problem is inventively solved by a filter system, wherein the transfer function of the filter system comprises at least one pair of first order polynomial fractions.
The invention is based on the consideration that high order polynomials are sensitive to the representation accuracy of their coefficients. Small inaccuracies in the coefficients lead to large changes in the roots of the polynomials, hence the shape of the polynomial and the filter characteristic itself will strongly change.
The sensitivity of the polynomial at a given point for small perturbations in the coefficient can be characterized by the derivative of the polynomial (more information can be read about this e.g. in P. Guillaume, J. Schoukens and R. Pintelon, “Sensitivity of Roots to Errors in the Coefficient of Polynomials Obtained by Frequency-Domain Estimation Methods,” IEEE Trans. on Instr. and Meas. vol. 38, pp. 1050-1056, December 1989.). If the derivative is small, the polynomial is very sensitive at that point. If the polynomial is expressed as
then the derivative is
where r is one root of the polynomial (if it belongs to the numerator, it will be the zero of the filter, if it belongs to the denominator it is the pole of the filter). This formula can be very small—hence the shape of the polynomial can be sensitive—if the roots are close together and the polynomial order is high. This is typical at high filter orders and when the filter corner frequency is low or the filter bandwidth is small (compared to the sampling frequency).
Inaccuracy of coefficients happens since the numerical representation of them has finite length. E.g. the IEEE 754 single precision floating-point format is only 7 digits accurate. Theoretically, the accuracy of the coefficients can be increased e.g. by using IEEE 754 double precision or quadruple precision. However, today's digital signal processors support only single precision calculations.
The following list shows some examples for the inaccuracy:
A 10th order Butterworth low-pass or high-pass filter, with IEEE 754 double precision calculations, becomes extremely inaccurate (more than 0.5 dB inaccuracy in the pass-band), if the corner frequency is lower than the 1/50-th part of the sampling frequency.
A 10th order Butterworth low-pass or high-pass filter, with IEEE 754 single precision calculations, becomes extremely inaccurate (more than 0.5 dB inaccuracy in the pass-band), if the corner frequency is lower than the 1/10-th part of the sampling frequency.
A 2nd order Butterworth low-pass or high-pass filter, with IEEE 754 single precision calculations becomes extremely inaccurate (more than 0.5 dB inaccuracy in the pass-band), if the corner frequency is lower than 1/1000-th part of the sampling frequency.
Splitting the original filter transfer function to the multiplicatives of smaller polynomial fractions efficiently decreases the sensitivity of the characteristic to numerical inaccuracies. One solution is to split the original transfer function into second order sections because calculations there will not be too difficult (cascaded biquad filters). However, as the last example above shows, sometimes this is not enough.
A better realization than traditional second order sections which has the smallest sensitivity for numerical inaccuracies in coefficients can be achieved by using cascaded first order polynomial fractions:
where j is the imaginary unit, i.e. the square root of −1. The derivative of a first order polynomial is always around 1. Hence the filter constructed from these first order polynomial fractions will become very stable.
Generally, this requires many calculations with complex numbers. The overall filter structure can be further simplified by arranging the polynomial roots into complex conjugate pairs, i.e. advantageously the poles and/or the zeros of the pair of polynomial fractions are complex conjugates, respectively:
wherein α, β, γ, δ are real numbers. In this case—for real input signals, of course—a second order block always has real input and real output that simplifies calculations. This forms a new second order filter structure.
Furthermore, the gain of the transfer function is advantageously realized by virtue of at least two separate multiplier elements, i.e. a split gain. This realization makes sense at fixed point realization. In this case the value range of internal variables will be the same (this is not required when using floating point calculations). E.g. in the case of structures for floating point realization, transients can be minimized by multiplying the internal variable at the first delay by the square root of gain change, and multiplying the internal variables at the second and third delays by the gain change.
The structure further simplifies, if the value of zeros of the pair of polynomial fractions is advantageously −1 or 1. Here, multiplier elements for the numerator of the polynomial fractions can be eliminated. This happens in the case of low-pass or high-pass Butterworth filter realizations.
In a further advantageous embodiment, the transfer function of the filter systems consists of cascaded pairs of first order polynomial fractions and at most one single first order polynomial fraction, wherein the poles and the zeros of each pair of polynomial fractions are complex conjugates, respectively. This provides a particularly advantageous way of creating higher order filter structures with the proposed filter structure by cascading the second order filter structures. Odd order filter structures can be created by cascading a first order filter to the cascaded second order structures.
The advantages achieved by the invention comprise particularly the creation of a new, second order IIR filter structure that is stable and has high accuracy on extreme low frequencies as well. The original filter transfer function is split into first order fraction parts. These fraction parts are complex conjugates. The new filter structure is created by realizing these parts assuming real (not complex) input and output signals. The coefficients of the filter are simply the real and imaginary part of the poles and zeros. The proposed new filter structure has extremely small output transients at filter coefficient change.
Embodiments of the invention are explained in more detail in the following figures.
Equal parts have the same reference numerals in all FIGs.
The block diagram according to
Equally, the imaginary input 104 is fed in parallel into a multiplier 120 with value γ and a delay 122 with serially connected multiplier 124 with value −δ. The signal from multipliers 120 and 124 are fed into adder 126 and from there serially into adders 128 and 130, the latter's signal then forming the imaginary output 132 of the filter.
The real 118 output is fed into a further delay 134 and from there split into multiplier 136 with value a leading to adder 116 and multiplier 138 with value β leading to adder 128. Equally, the imaginary output 132 is fed into a further delay 140 and from there split into multiplier 142 with value a leading to adder 130 and multiplier 144 with value −β leading to adder 114.
The block diagram according to
Adder 206's output is fed into adder 218 and further split into delay 220 and adder 222. The output signal of delay 220 is split into multiplier 224 with value α leading to adder 218, multiplier 226 with value −γ leading to adder 222 and multiplier 228 with value −β leading to adder 216. Adder 216′s output is fed into delay 230. The output signal of delay 230 is split into multiplier 232 with value α leading to adder 216, multiplier 234 with value −δ leading to adder 222 and multiplier 236 with value β leading to adder 218. The output of adder 222 is fed into multiplier 238 with value K (the gain of filter system 201) whose output forms the real output 240 of the filter system 201.
In filter system 301, multiplier 238 of
The structure further simplifies, if the value of zeros are −1 or 1, i.e. δ=γ=0. This happens in the case of low-pass or high-pass Butterworth filter realizations.
The block diagram according to
The block diagram according to
The block diagram according to
The shown filter structures 101, 201, 301, 401, 501, 601 provide a particularly advantageous way of creating higher order filter structures by cascading the second order filter structures 201, 301, 401, 501, 601 in arbitrary selection and number. Odd order filter structures can be created by cascading a first order filter to the cascaded second order filter systems 201, 301, 401, 501, 601.
The new filter structure has much better accuracy on low corner frequencies, or when the filter bandwidth is small. Comparison of characteristics of the traditional, direct form I filter and the proposed filter structure—by using only single precision calculations—can be seen in
The graph according to
The proposed filter structure has a very good transient behavior as well. Traditional filter structures (e.g. Direct Form II or Lattice) can make strong transients when the corner frequency of the filter is changed during filtering. In the case of the proposed filter structure made for fixed point realization (split gain), transients are very small at coefficient changes.
In
While specific embodiments have been described in detail, those with ordinary skill in the art will appreciate that various modifications and alternative to those details could be developed in light of the overall teachings of the disclosure. For example, elements described in association with different embodiments may be combined. Accordingly, the particular arrangements disclosed are meant to be illustrative only and should not be construed as limiting the scope of the claims or disclosure, which are to be given the full breadth of the appended claims, and any and all equivalents thereof. It should be noted that the term “comprising” does not exclude other elements or steps and the use of articles “a” or “an” does not exclude a plurality.
Number | Date | Country | Kind |
---|---|---|---|
12163968.6 | Apr 2012 | EP | regional |