FILTERING METHOD AND FILTER

Abstract: The invention relates to a filtering method and a filter implementing the filtering method. In the solution, a signal is filtered by at least one real FIR filter (22) having at least one stop frequency pair whose different frequencies are symmetrically on different sides of at least one alias frequency.

Description: FILTERING METHOD AND FILTER FIELD OF THE INVENTION [0001] The invention relates to a filter for the decimation or interpolation of a digital signal. BACKGROUND OF THE INVENTION [0002] Digital signal processing comprises several applications in which sampling should be changeable. In decimation, the sampling period is extended, whereby the sampling frequency decreases. This reduces the number of data points processed or stored in the memory per a time unit. In interpolation, the sampling period is shortened and the sampling frequency increases and the number of data points per a time unit increases. [0003] There is a need to change sampling for instance in a radio system receiver in which an analogue-to-digital conversion is made to a pass band signal using a high sampling frequency. After the A D conversion, the frequency of the pass band signal is decreased to a base band, but the sampling frequency still remains high. Sampling can be reduced by using a decimation filter, which also improves the signal-to-noise ratio. [0004] An example of an ordinary decimating or interpolating filter, which changes the sampling of a signal by a high coefficient, is for instance a CIC (Cascaded Integrator-Comb) filter which comprises a set of integrators, a sampler and a set of comb filters after each other in a series. The solution is described in more detail in the publication: E.B. Hogenauer, An Economical Class of Digital Filters for Decimation and Interpolation, which is incorporated herein by reference. [0005] A problem with the decimating and interpolating CIC filter is that the stop band does not efficiently enough attenuate the interfering signals. Especially if the stop band has interfering signals that are not exactly on the notch frequency of the CIC filter, the interference may damage the operation of the filter. BRIEF DESCRIPTION OF THE INVENTION [0006] It is thus an object of the invention to provide an improved method and a filter implementing the method so as to efficiently attenuate interference on a wider frequency band. This is achieved by a filtering method in which a signal is processed digitally and sampling is changed by coefficient M which is a positive integer and which defines alias frequencies on the frequency band of the filtering method. In the method, the signal is further filtered by at least one real FIR filter having at least one stop frequency pair whose different frequencies are symmetrically on different sides of at least one alias frequency. [0007] The invention also relates to a filter which is adapted to process a signal digitally and comprises a sampler for changing sampling by coefficient M which is a positive integer and which defines alias frequencies on the frequency band of the filtering method. Further, the filter comprises at least one real FIR filter having at least one complex stop frequency pair whose different frequencies are symmetrically on different sides of at least one alias frequency. [0008] Preferred embodiments of the invention are set forth in the dependent claims. [0009] The invention is based on using two stop frequencies, instead of just one, per each alias frequency, the stop frequencies being generated by a complex conjugate pair in a transfer function. [0010] The solution of the invention provides several advantages. The stop band can be made wider, which enables a more efficient interference elimination and a more reliable filter operation. BRIEF DESCRIPTION OF THE FIGURES [0011] The invention will now be described in greater detail by means of preferred embodiments and with reference to the attached drawings in which Figure 1 shows a CIC filter, Figure 2A shows a filter which comprises a second-order MR filter, a sampler and a second-order FIR filter, Figure 2B shows a zero-pole map, Figure 2C shows the amplification of the disclosed filter and the CIC filter as a function of the frequency, Figure 2D shows a filter which comprises a CIC filter and a second- order II R filter and FIR filter on different sides of the CIC filter, Figure 2E shows a filter which comprises an integrator, a second- order IIR filter, a sampler, a second-order FIR filter and a comb filter, Figure 3 shows a second-order decimator whose delay elements are reset regularly, Figure 4A shows a fourth order decimator whose delay elements are reset regularly, Figure 4B shows a general block diagram of a decimator whose delay elements are reset regularly, and Figure 5 shows a filter having two comb filters operationally connected to it. DETAILED DESCRIPTION OF THE INVENTION [0012] The described solution is suited for use in changing the sampling of a received signal in a radio system receiver without, however, being limited to it. [0013] Let us first examine a prior-art CIC filter described by way of a block diagram in Figure 1. The CIC filter comprises N integrators 10 and N comb filters 12, wherein N is a positive integer. Each integrator can be shown by means of an adder 100 and a delay element 102. Each integrator adds a delayed signal to an incoming signal. The comb filter can also be shown by means of a delay element 106 and an adder 108. Each adder 108 subtracts a delayed signal from an incoming signal. Between the integrator block 10 and the comb filter block 12, there is a sampler 104 which changes the sampling by coefficient , M being a positive integer. When feeding a signal from left to right, the CIC filter of Figure 1 serves as a decimator. When feeding a signal from right to left, the CIC filter of Figure 1 serves as an interpolator. When decimating, the CIC filter reduces the sampling frequency by coefficient M and when interpolating, it increases the sampling frequency by coefficient M. The transfer function H(z) of a decimating or interpolating filter is in its z transformation form as follows: H(z) = [(1 - z ,-M™)/(/-1i - (1 ) wherein z is a frequency variable of z space, z "1 represents a unit delay, M is a decimation coefficient, N is the number of order (number of integrators and comb-filtering stages). The zero points of the transfer function of the integrator 10 are the poles of the transfer function of the filter. Thus, z = 1 is an N-fold pole. The zero points of the transfer functions of the comb filters are zeros of the filter. This way, the zero point is z = ^ . . For instance, when the sampling change is M = 4, the zero points are z 1 ι2 ,3,4 = ±1 , ±j- The zero points of the filter are also N-fold. [0014] Let us now examine a filter according to the solution described in Figure 2A, which filter is suited for both interpolation and decimation. The samples propagate in the filter controlled by a clock and addition, subtraction and multiplication are usually done during one clock cycle. The sampler 210 is as the sampler 104 in Figure 1. In this solution, however, the integrating block 10 of the CIC filter is replaced by a second- order IIR filter 20 which comprises adders 200 and 202, a multiplier 204, and delay elements 206 and 208. The filter can have one or more blocks 20. In the adder 200, a signal delayed in the delay elements 206 and 208 is subtracted from the incoming signal. To the thus obtained difference signal, a signal delayed in the delay element 208 is added, the delayed signal having been multiplied in the multiplier 204 by coefficient 2.real(a), wherein a is a complex parameter of the filter. During decimation, this sum signal propagates towards the sampler 210. During interpolation, the signal arriving at block 20 comes from the sampler 210. The transfer function of block 20 is D(z) = (1 - az "1 ).(1 - a*z "1 ) = 1 - 2.real(a)z '1 + z "2 (2) The filter is real, because coefficients (1 , 2.real(a) and 1) of the polynome are real. Correspondingly, the comb block 12 of the CIC filter is replaced by a second-order FIR filter which comprises delay elements 212 and 218, adders 214 and 220, and a multiplier 216. The filter has as many blocks 22 as blocks 20. In the adder 214, a signal delayed in the delay element 212 is subtracted from the incoming signal, the delayed signal having been multiplied in the multiplier 216 by coefficient 2.real(a M ), wherein a is a complex parameter of the filter. In the adder 220, a signal delayed in the delay elements 212 and 218 is added to the difference signal. During decimation, this signal is the outgoing signal. During interpolation, the signal arriving at block 22 is fed into the adder 220. The transfer function of block 22 is -2M L(z) = (1 - (az ) -(1 - (a * z " T) = 1 - 2.real(a )z M + z (3) This filter, too, is real, because the coefficients of the polynome are real. In formulas (2) and (3), a is a complex parameter which can be presented as a = α + jβ, wherein j is an imaginary unit, a* is the complex conjugate a* = α - jβ of parameter a, and the absolute value of parameter a and a* is 1 , i.e. | a| = I a* I = ^α 2 + β = 1. Parameter a does not, however, obtain the value a = 1. 1 Coefficient real(a) preferably obtains the value real(a) = 1 - — , wherein T is a 2 1 positive integer. In such a case, a is a = real(a) + j ^1 - [real(a)] . To simplify the multiplication, one should try to have as few ones as possible in the binary format of parameter a. [0015] In a decimating filter, the multiplier 216 can be implemented as a serial multiplier instead of an ordinary multiplier, because the product need not be formed at every clock cycle, but the multiplier 216 has M clock cycles time to form the multiplication product before the next sampling. [0016] Let us now examine the effect of parameter a on the zero- pole map of the complex frequency space by means of Figure 2B. The vertical axis Im is imaginary and the horizontal axis Re is real. The frequency band used in filtering, i.e. the operating band of the filter, corresponds to a full circle. Let us assume, for instance, that sampling is changed by coefficient M = 4. This produces four alias frequencies 252 and the entire circle is divided into four sections. During decimation, all alias frequencies 252 fold on top of each other on the lowest operating frequency 250 of the [alias] filter on the positive real axis in the same manner as all circle quarters fold on the first quarter. The lowest operating frequency 250 of the filter is a DC component, for instance, i.e. the frequency 250 is 0 Hz. The alias frequency 252 having the highest frequency is depicted at the same point as the lowest frequency 250 of the filter. During decimation, the alias frequency 252 f a ι.as is f a iias = k»(f S ampie ) , wherein k is k = [1 , ..., M]. During interpolation, the corresponding alias frequency 252 on the positive real axis multiplies into three other alias frequencies 252. Similarly, the first quarter multiplies into three other quarters. During interpolation, the alias frequency is thus f a ii as = (M - i)»f sa mpie, wherein i is i = [0, ..., M - 1]. In the presented solution, parameter a is used to affect the filtering in such a manner that corresponding to the alias frequencies 252, there are two complex frequencies 254 and 256 derived from parameter a that are located symmetrically on different sides of the alias frequencies 252 and that are stop frequencies of filtering. The complex frequencies 254 and 256 are also in the same way on different sides of the lowest frequency 250 of the filter. Filtering amplification on these two stop frequencies is substantially zero, i.e. the transfer function obtains the value zero. Mathematically, this is: l (?) H(z) = -T = 0 => L(z) = (1 - (az 1 ) ) «(1 - (a * z "1 ) M ) = 0- The result is two times D(z) M zero points. For instance, if the sampling change coefficient M is M = 4, the zero points are z-i = a, z 2 = a * , z 3 = exp(jπ/4) .a, z = exp(jπ/4) .a*, z 5 = exp(jπ/2) •a, z 6 = exp(jπ/2) .a*, z 7 = exp(j3π/4) .a and z 8 = exp(j3π/4) .a*, which are points 254 and 256 in Figure 2B. [0017] The poles of the transfer function of filtering are at the zero points of the denominator, i.e. D(z) = (1 - az "1 ).(1 - a * z ~1 ) = 1 - 2.real(a)z "1 + z "2 = 0. The result is pole frequencies z = a and z = a * corresponding to the zero points, both being simple zero points on both sides of the lowest operating frequency 250 of the filter. [0018] Thus in the presented solution, there is a complex conjugate pair a and a * for each alias frequency f a iias in such a manner that the average value of the complex conjugate pair corresponds to the alias frequency f a |j as in the z frequency space. The complex conjugate pair a and a * thus unambiguously defines the pole and stop frequencies of the filter. [0019] Figure 2C shows a descriptor 260 of the transfer function of a conventional CIC filter and a descriptor 262 of the transfer function of a filter according to the presented solution. The vertical axis shows filter amplification A on a freely selected scale and the horizontal axis shows frequency f. The CIC filter has only one stop frequency for each alias frequency. In the presented solution, the use of at least one complex conjugate pair (Figure 2C shows the impact of only one complex conjugate pair) produces at least two real stop frequencies 266 (Figure 2C has only two stop frequencies) for each alias frequency 264 and the widening of the stop band, which improves the interference immunity of the filter, because even though the interference is not exactly on the alias frequency 264, it still attenuates strongly as long as it is between two stop frequencies (a small deviation outside the stop frequency range is also possible). For instance GSM (Global System for Mobile Communication) and WCDMA (Wide-band Code Division Multiple Access) radio systems require a high attenuation of the interference power on a stop band, and high attenuation is possible with the presented solution. Because two complex conjugate pairs widen the stop band, spurious frequencies can be easily attenuated to the extent required by a wide band. [0020] Figures 2D and 2E show solutions in which the presented solution is combined with a CIC filter known per se. The solution of Figure 2D comprises at least one second-order IIR filter 20, at least one block 10, a sampler 210, at least one block 12 and at least one second-order FIR filter 22. The solution in Figure 2E comprises at least one block 10, at least one second-order IIR filter 20, a sampler 210, at least one second-order FIR filter 22 and at least one block 12. The blocks can also be arranged as follows: 10, 20, 210, 12 and 22. The mutual order of blocks 10 and 20 bears no significance to the solution, and neither does the mutual order of blocks 12 and 22. [0021] In Figures 2D and 2E, there are as many blocks 12 as blocks 10. Similarly, there are as many blocks 20 as blocks 22. Further, blocks 10 and 12 are the same as blocks 10 and 12 of Figure 1. Correspondingly, blocks 20, 22 and 210 are the same as blocks 20, 22 and 210 of Figure 2A. [0022] The transfer function of the filter according to Figures 2D and 2E is generally: Lι(z)...L p (z) l (z)...L p (z) H(z) = R(z) , * , . or H(z) = --, , , * , , R(z) (4) Dι(z)...D p (z) Dι(z)...D p (z) - wherein the number p of terms is a positive integer and the term R(z) refers to the filter transfer function known per se. The transfer function R(z) can for instance be the transfer function of the CIC filter. Each term Dj(z) refers to a second-order IIR filter (such as block 20) and each term Lj(z) refers to a second-order FIR filter (such as block 22). In each block Dj(z) and (z), the parameter of the filter is ai which determines each zero and pole of the transfer function. Parameter a \ of each block i differs from parameters a\ of the other blocks, wherein j ≠ i. In addition, none of parameters a is one, i.e. ai ... a p ≠ 1 , and the absolute value of all parameters a is one, i.e. | a ≡ ... ≡ | a p | ≡ 1. The number p of blocks D^z) ... D p (z) and Li(z) ... L p (z) is at least one. Lι(z)...L p (z) [0023] The filter transfer function which is H(z) = _ , . ( \ can Dι(z)...D p (z) be presented as H(z) = G(z). Similarly, the filter transfer function which is Lι(z)...Lp(z) Lχ(z)...L p (z) , - . . H(z) = R(z) , . * , . or H(z) = , , y , R(z) , wherein R z is the Dι(z)...Dp(z) Dι(z)...Dp(z) transfer function of a known filtering method, can be presented as H(z) = R(z)G(z) or H(z) = G(z)R(z). The transfer function R(z) can be CIC filtering or any other desired filtering. In both above cases, G(z) can be presented in a power series form G(z) = c(0) + ... + c(p)z "2pM . The serial-form term G(z) can be implemented as a FIR filter, because coefficients c(i), wherein i = [1 , ... p], always unambiguously depend on parameter a and the complex conjugate a* of parameter a. For instance, coefficient c(0) is c(0) = 1 and coefficient c(p) is c(p) = (a-ιa * ι) M • ... .(a p a* p ) . Especially if the transfer function Lι(z)...L p (z) L(z)P H(z) = ^ , . J can be presented as H(z) = G(z) = , wherein Di(z)...D p (z) D(z)P parameter a of all blocks L(z) and D(z) is the same, G(z) can be presented as G(z) = 1 + ... + (aa*) p z "2pM . By implementing the power series-form term G(z) as a FIR filter, the stability of the filter improves. In addition, to simplify the multiplication, one should try to have as few ones as possible in the binary format of coefficients c(0) to c(p). Coefficients c(0) to c(p) of the term G(z) can be non-integers. In the presented solution, a non-integer coefficient c(i) can be rounded to an integer. This simplifies the structure. [0024] At least one zero pair in the term G(z) can also be left out, in which case the corresponding multiplication is not done or the multiplier implemented. This means that one of the transfer function parts Lj(z) of the second-order FIR filter is not implemented. Then at least one term L(z) of the second-order FIR filtering that is a pair of a term D(z) of the second-order IIR Lι (z)...L (z) filtering is left out, and the term G(z) is G(z) = , ■. —rx. wherein v is a Dι(z)...Dp(zJ positive integer with v < p. This can be done especially when the filter transfer function is H(z) = R(z)G(z), wherein R(z) alone already band-stop filters efficiently. This, too, simplifies the structure, because the number of FIR filter coefficients becomes smaller. After the term U(z) is removed, the weighting coefficients of the taps of the term G(z), i.e. the values of parameters a and a*, can be altered in comparison with the original values to improve filtering. [0025] When implementing a decimator as presented herein, it is possible, instead of each FIR block 22 shown in Figure 2A, to use FIR filters whose input signal is the input signal of the delay elements, and to reset the delay elements to zero at the sampling time of the sampler. Let us first examine the theoretical basis of this solution. The output signal Y(z) of the z variable of the filter in the frequency space is a product of the impulse response H(z) and the input signal X(z) of the filter: Y(z) = H(z)X(z). Adding to and subtracting from the input signal one or more desired signals A(z) does W not change the output signal Y(z). This means that Y(z) = H(z)[X(z) + ∑ Ai(z) i=0 W W W - ∑Ai(z) ] = H(z)[X(z) + ∑A (z) ] - H(z) ∑Ai(z) , wherein W refers to the i=0 i=0 i=0 number of signals A(z) to be added. The added signal A(z) is preferably a reset signal of the delay elements 212 and 218 that empties the content of the W delay elements. This is shown in the term H(z)[X(z) + ∑Ai(z) ]. When the i=0 delay elements are reset to zero after each sampling, overload situations due to a possible DC offset are avoided and a more reliable operation achieved in all conditions. The impact of one or more reset signals A(z) is noted by the W term H(z) ∑Aj(z) when forming the output signal Y(z). The term i=0 W H(z) ∑ Ai(z) can be implemented by a FIR filter. i=0 [0026] A problem with a second-order IIR filter may be that the data fed into it does not have zero as a long-term expected value, i.e. the data may include DC offset. Already a small DC offset in the data causes an overload in the second-order IIR filters and malfunction in the decimating filter. To avoid DC offset, it is possible to use twos complement arithmetics or the like in which positive and negative numbers are obtained from each other by a simple change of bit. Increasing the word length of the decimating filter can often also reduce the problem. The problem can, however, be eliminated by resetting the delay elements to zero at every sampling, in which case DC offset does not cause an overload. In addition, having the poles of the filter on a unit circle increases the instability of the filter, but resetting the delay elements as described improves stability. [0027] Figure 3 shows as a block diagram the implementation of a second-order decimator in which the delay elements are reset to zero at the sampling time of the sampler. The solution comprises a second-order IIR filter 300 corresponding to block 20 of Figure 2A. Block 300 comprises adders 302 and 304, a multiplier 306 and delay elements 308 and 310. In addition, instead of block 22 of Figure 2A, the solution comprises FIR filters 316 and 318 and an adder 320 in block 322. The solution also comprises samplers 312 and 314 that decimate by coefficient M. When the samplers 312 and 314 sample signals to be fed into the delay elements 308 and 310, the content of the delay element 308 is at the same time reset to zero by a signal A-ι(z) and the content of the delay element 310 is reset to zero by a signal A 2 (z). The sample of the samplers 312 and 314 is fed to the FIR filters 316 and 318, the FIR filter 316 having a transfer function H F ι (z) of HFIFM (Z) = - H(z) Aι(z) and the FIR filter 318 having a transfer function H F IR2(Z) of H F IR 2 (Z) = - H(z) A 2 (z). The output signals of the FIR filters 316 and 318 are summed in the adder 320, whereby the output signal of the filter is formed. [0028] Figure 4A shows a block diagram of a fourth-order decimator, the principle of which can also easily be used for higher-order decimators. The decimator comprises two second-order IIR filters 400, samplers 404 to 410 that decimate by coefficient M, FIR filters 412 to 418, adders 420 and 422, a second-order FIR filter 402 and an adder 426. The second-order IIR filter 400 comprises adders 430 and 432, a multiplier 434 and delay elements 436 and 438. The second-order IIR filter 402 comprises adders 440 and 442, a multiplier 444 and delay elements 446 and 448. The second-order FIR filter 424 comprises delay elements 450 and 456, adders 454 and 458 and a multiplier 452 whose coefficient 2real(a^) depends on coefficient 2real(a-ι) of the IIR filter 400. The operation of the second-order FIR filter 424 can be located in the FIR blocks 412 and 414 and block 424 need not be implemented separately. [0029] Figure 4B shows a general block diagram of a decimator of a higher order than the second order. The decimator comprises a second-order filter 470 which comprises blocks 300, 312, 314 and 322 as in Figure 3. In addition, the decimator comprises at least one second-order filter 472. For each second-order IIR filter unit 474, the decimator comprises samplers 476 and 478 and a block 480 (block 480 is similar to block 322), one second-order FIR filter 482 and an adder 484 in block 472. The adder 484 sums the signal arriving from the second-order FIR filter 482 with the signal arriving from block 480. In this solution, too, the operation of the second-order FIR filter 482 can be combined with the FIR blocks of the previous order (if the previous order is block 470, the FIR block 482 can be combined with block 322) as shown in the solution of Figure 4A. [0030] In the presented solution, two extra comb filter blocks can yet be added to the end of the decimator or to the beginning of the interpolator. Such a solution is shown in Figure 5. The filter comprises a block 500, which is a prior-art CIC filter or a filter block according to Figures 2A, 2C, 2D, 3A or 3B, and at least one comb filter pair 502 and 504 whose operation is affected by parameter b. In the comb filter 502, a signal delayed by the delay element 506 is multiplied in the multiplier 508 by coefficient 1/b and the result is subtracted in the adder 510 from a signal received by it. In the second comb filter 504, the signal delayed by the delay element 512 is multiplied in the multiplier 514 by coefficient b and the result is subtracted in the adder 516 from a signal received by it. The following applies to parameter b: b is real, the value of parameter b is positive and unequal to 1. When using the comb blocks 502 and 504 in filtering, the filtering keeps the linear phase properties of the signal and the ripple of the amplification of the pass band decreases. [0031] Let us yet shortly examine the FIR and IIR filters. In time space, the output y(n) of a K-tap FIR filter can be presented as K-l y(n) = ∑ h(k)x(n- k) , (5) k=0 wherein h(k) is a tap coefficient and k is the sample index. Correspondingly, the output of an IIR filter is oo y(n) = ∑ h(k)x(n- k) (6) =0 which shows that a fed impulse affects the output for an indefinite time. [0032] Even though the invention has been explained in the above with reference to examples in accordance with the attached drawings, it is clear that the invention is not restricted to them but can be modified in many ways within the scope of the inventive idea disclosed in the attached claims.

Claims: CLAIMS 1. A filtering method in which a signal is processed digitally and sampling is changed by coefficient M which is a positive integer and which defines alias frequencies (252) on the frequency band of the filtering method, characterized by filtering the signal by at least one real FIR filtering having at least one stop frequency pair (254, 256, 266) whose different frequencies are symmetrically on different sides of at least one alias frequency (252). 2. A method as claimed in claim 1, characterized by filtering the signal with at least one real IIR filtering, and changing the sampling by coefficient M between the IIR filtering and the FIR filtering. 3. A method as claimed in claim 1, characterized by filtering the signal with at least on real FIR filtering and at least one real IIR filtering in such a manner that the transfer function H(z) of the filtering method comprises a quotient of at least one second-order IIR filtering D(z) and at least one second- order FIR filtering L(z) which is wherein p and v are positive integers, and changing the sampling by coefficient M between the IIR filtering and the FIR filtering. 4. A method as claimed in claim ^characterized in that the transfer function of the FIR filtering comprises a term L(z) describing the second-order FIR filtering that is L(z) = (1 - (az "1 ) M ) . (1 - (aY 1 ) M ), wherein a and a* are complex parameters of the filter, the absolute value of each is 1 and they define the stop frequencies (254, 256, 266) of the FIR filtering, and a* is a complex conjugate of parameter a. 5. A method as claimed in claim 2, characterized in that each IIR filtering has, corresponding to the lowest operating frequency of the filter, at least one complex pole frequency pair whose different frequencies are symmetrically on different sides of the lowest operating frequency (250) of the filter, each IIR filtering is the pair of one FIR filtering in such a manner that the IIR filtering and the FIR filtering have the same filtering parameters a and a * that define the stop and pole frequency pairs of said IIR and FIR filterings, and a and a* are complex parameters of the filter, the absolute value of each is 1 and a* is a complex conjugate of parameter a. 6. A method as claimed in claim 3, characterized by performing the IIR filtering as second-order IIR filtering and performing the FIR filtering as second order FIR filtering, and each second-order IIR filtering is the Lι(z)...L (z) pair of one second-order FIR filtering in quotient >. ^ , Λ in such a Dι(z)...Dp(z) manner that the IIR filtering and the FIR filtering have the same filtering parameters a and a* and there are as many second-order FIR terms L(z) as second-order IIR terms D(z), in which case v = p applies to the indexes p and v, and performing the second-order FIR filtering in such a manner that the transfer function L(z) of the second-order FIR filtering is L(z) = (1 - (az "1 ) M ) . (1 -(aV 1 ) M ), and performing the second-order IIR filtering in such a manner that the transfer function D(z) of the IIR filtering i corresponding to the second order is D(z) = (1 - (az 1 ) . (1 - (a z "1 ), wherein a and a* are complex parameters of the filter, the absolute value of each is 1 and they define the stop and pole frequency, and a* is a complex conjugate of parameter a. 7. A method as claimed in claim 4, characterized in that the 1 real part of parameter a is 1 - -=r , wherein T is a positive integer. 2 1 8. A method as claimed in claim 3, characterized by performing the filtering by a filtering method which comprises both a predefined filtering whose transfer function is R(z) and a filtering which is in quotient format , P " v P >. , and the transfer function describing the filtering Dι(z)...D p (z) Lι(z)...Lv(z) Lι(z)...L v (z) method is H(z) = R(z) D* 1 (z)....D?p)(z{) or H(z) = D *ι(z)... nDp M(z) R(z) ' wherein the second-order FIR filtering term Lj(z) is (z) = (1-(aιz "1 ) M ) • (1-(a * |Z "1 ) M ) and the second-order IIR filtering term D|(z) is D|(z) = (1-aιz " ) . (1- a jz " ), wherein i is the filtering index, p is a positive integer and a \ is a complex parameter of the filter, the absolute value of which is 1 and which defines the stop and pole frequency, and a * is a complex conjugate of parameter aj. 9. A method as claimed in claim 3, characterized by performing the filtering by a filtering method which comprises a transfer function of G(z) = c(0) + ... + c(p)z "2pM that is formed as a quotient G ( z ) = ^ π of products L 1 (z).....L p (z) and D 1 (z).....D p (z), and Dι z)...Dp(z) performing the filtering according to the term G(z) as FIR filtering, wherein the term L,(z) of the second-order FIR filtering is U(z) = (1 - (aιz "1 ) M ) . (1 - (a * |Z "1 ) M ) and the term Dι(z) of the second-order IIR filtering is D|(z) = (1 - ajZ "1 ) • (1 - aV 1 ), wherein i is the filtering index, p is a positive integer and \ is a complex parameter of the filter, the absolute value of which is 1 and which defines the stop and pole frequency, and a * is a complex conjugate of parameter a. 10. A method as claimed in claim 9, characterized in that when one or more coefficients c(0) to c(p) are other than integers, at least one non-integer coefficient is rounded to an integer. 11. A method as claimed in claim 3, characterized in that at least one term L(z) of the second-order FIR filtering, which is the pair of a second-order IIR filtering D(z), is left out of the filtering, whereby the term G(z) Lι(z)...L v (z) is G(z) = r-τJ ~ T \ , wherein v < p applies. D z)...Dp(z) 12. A method as claimed in claim 2, characterized in that when the filtering method is a decimating method, the delay elements of each IIR filtering are reset to zero when a decimated sample is taken, the sampling is changed by decimating signals delayed in IIR filtering, and the decimated signal is filtered by FIR filtering. 13. A method as claimed in claim ^ characterized by also performing at least two comb filterings which form a comb filtering pair and which have a common parameter b affecting the filtering operation in such a manner that the transfer function of the first filtering of the comb filtering pair obtains as its zero point the value b which is the stop frequency of the first comb filtering, and the transfer function of the second filtering of the comb filtering pair obtains as its zero point the value 1/b which is the stop frequency of the second comb filtering and wherein b is real, positive and unequal to1. 14. A filter which is arranged to process a signal digitally and comprises a sampler for changing sampling by coefficient M which is a positive integer and which defines alias frequencies on the frequency band of the filtering method, characterized in that the filter comprises at least one real FIR filter (22, 322) having at least one complex stop frequency pair whose different frequencies are symmetrically on different sides of at least one alias frequency. 15. A filter as claimed in claim 14, characterized in that the filter comprises at least one real IIR filter (20, 300), and the sampler (210) is operationally between the IIR filter (20, 300) and the FIR filter (22, 322). 16. A filter as claimed in claim 14, characterized in that the filter comprises at least one real FIR filter (22, 322) and the filter comprises at least one real IIR filter (20, 300) and the transfer function H(z) of the filter comprises a quotient of at least one second-order IIR filter D(z) and at least one second-order FIR filter L(z) .. , . Lι(z)...L v (z) , . , .. . which is , . / \ , wherein p and v are positive integers. Dι(z)...D p (z) 17. A filter as claimed in claim 14, characterized in that the transfer function of the FIR filter (22, 322) comprises a term L(z) describing the second-order FIR filtering that is L(z) = (1 - (az " ) M ) . (1 - (az 1 ) M ), wherein a and a* are complex parameters of the filter, the absolute value of each is 1 and they define the stop frequency, and a* is a complex conjugate of parameter a. 18. A filter as claimed in claim 15, characterized in that each IIR filter (20, 300) has, corresponding to the lowest operating frequency (250) of the filter, at least one complex pole frequency pair whose different frequencies are symmetrically on different sides of the lowest operating frequency of the filter, and each IIR filter (20, 300) is the pair of one FIR filter (22, 322) in such a manner that the IIR filter and the FIR filter have the same filtering parameters a and a * that define the stop and pole frequency pairs of said IIR and FIR filters, and a and a * are complex parameters of the filter, the absolute value of each is 1 , and a* is a complex conjugate of parameter a. 19. A filter as claimed in claim 16, characterized in that the IIR filter is a second-order IIR filter and the FIR filter is a second-order FIR filter, and each second-order IIR filter is the pair of one second-order FIR filter in such a manner that the IIR filter and the FIR filter have the same filtering parameters ai and a*, and the transfer function (z) of the second-order FIR filter is Lι(z) = (1 - the transfer function Di(z) of the second-order IIR filter i is Di(z) = (1 - ajZ "1 ) . (1 - a * jZ "1 ), wherein a and a * are complex parameters of the filter, the absolute value of each is 1 , and they define the stop and pole frequency, and a * is a complex conjugate of parameter a. 20. A filter as claimed in claim 17, characterized in that the 1 real part of parameter a is 1 - — , wherein T is a positive integer. 2 1 21. A filter as claimed in claim 16, characterized in that the filter comprises both a desired filter part having a transfer function of R(z) and Lι(z)...L v (z) a filter part having a transfer function of , >. xrτ-, and the transfer H a Dι(z)...D p (z) function of the filter is H(z) = R(z) , ' , or H(z) = T , 1 Z '" n R ( z ) . Dι(z)...Dp(z) D z)...Dp(z) wherein the term Lj(z) of the second-order FIR filtering is (z) = (1 - (aiZ "1 ) ) • (1 - (aV ) and the term D ( (z) of the second-order IIR filtering is D|(z) = (1 - a-,z "1 ) . (1 - a * ιz "1 ), wherein p is a positive integer and ai is a complex parameter of the filter, the absolute value of which is 1 and which defines the stop and pole frequency, and a* is a complex conjugate of parameter a. 22. A filter as claimed in claim 16, characterized in that the transfer function of the filter comprises the term G(z) = c(0) + ... + c(p)z "2pM that is formed as a quotient G(z)= P " v , λ of products L 1 (z)...L„(z) and Dιz)...Dp(z D 1 (z)...D p (z), and the filter is arranged to perform the filtering according to the term G(z) as FIR filtering, wherein the term Lj(z) of FIR filtering corresponding to the second order is Lι(z) = (1 - (aιz ) M ) . (1 - (aV ) and the term D,(z) of IIR filtering corresponding to the second order is Dj(z) = (1 - aiz "1 ) . (1 - aV 1 ), wherein p is a positive integer and ai is a complex parameter of the filter, the absolute value of which is 1 and which defines the stop and pole frequency, and a * is a complex conjugate of parameter a. 23. A filter as claimed in claim 22, characterized in that when one or more coefficients c(0) to c(p) are other than integers, at least one non-integer is rounded to an integer. 24. A filter as claimed in claim 16, characterized in that at least one second-order FIR filter term L(z), which is the pair of a second-order IIR filter D(z), is left out of the filter, whereby the term G(z) is Lι(z)...L v (z) G ( z ) = \ T T. wherein v < p applies. Dι z...Dp z) 25. A filter as claimed in claim 14, characterized in that when the filter is a decimator, the filter is arranged to reset to zero the delay elements (436, 438, 446, 448) of each IIR filter (300, 400, 402, 474) when a decimated sample is taken, and the samplers (312, 314, 404 to 410) are arranged to take a sample for decimation from the input signal of the delay elements (436, 438, 446, 448) of the IIR filter (300, 400, 402, 474), and the filter is arranged to FIR-filter the decimated signal. 26. A filter as claimed in claim 14, characterized in that the filter also comprises at least two comb filters (502, 504) which form a comb filter pair and which have a common parameter b affecting the filtering operation in such a manner that the transfer function of the first filter (504) of the comb filter pair obtains as its zero point the value b which is the stop frequency of the first comb filter, and the transfer function of the second filter of the comb filter pair (502) obtains as its zero point the value 1/b which is the stop frequency of the second comb filtering, wherein b is real, positive and unequal to 1.

Inventors: PIIRAINEN OLLI, PIIRAINEN, OLLI
Applicants: NOKIA CORP, PIIRAINEN OLLI, NOKIA CORPORATION, PIIRAINEN, OLLI
Application year: 2001
Main classification: H03H17
IPC codes: H03H17