CN113676156A - LMS-based arbitrary amplitude-frequency response FIR filter design method - Google Patents
LMS-based arbitrary amplitude-frequency response FIR filter design method Download PDFInfo
- Publication number
- CN113676156A CN113676156A CN202110918349.3A CN202110918349A CN113676156A CN 113676156 A CN113676156 A CN 113676156A CN 202110918349 A CN202110918349 A CN 202110918349A CN 113676156 A CN113676156 A CN 113676156A
- Authority
- CN
- China
- Prior art keywords
- filter
- frequency
- amplitude
- coefficient
- fir filter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000013461 design Methods 0.000 title claims abstract description 21
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 15
- 239000013598 vector Substances 0.000 claims description 16
- 238000005070 sampling Methods 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000001228 spectrum Methods 0.000 claims description 2
- 238000001914 filtration Methods 0.000 description 6
- 230000003044 adaptive effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 241000191291 Abies alba Species 0.000 description 1
- 230000021615 conjugation Effects 0.000 description 1
- 238000012804 iterative process Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000010183 spectrum analysis Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03H—IMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
- H03H17/00—Networks using digital techniques
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03H—IMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
- H03H21/00—Adaptive networks
- H03H21/0012—Digital adaptive filters
- H03H21/0043—Adaptive algorithms
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03H—IMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
- H03H17/00—Networks using digital techniques
- H03H2017/0072—Theoretical filter design
- H03H2017/0081—Theoretical filter design of FIR filters
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03H—IMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
- H03H21/00—Adaptive networks
- H03H21/0012—Digital adaptive filters
- H03H21/0043—Adaptive algorithms
- H03H2021/0056—Non-recursive least squares algorithm [LMS]
Landscapes
- Filters That Use Time-Delay Elements (AREA)
Abstract
The invention provides a design method of an arbitrary amplitude-frequency response FIR filter based on LMS, wherein the FIR filter is determined as a linear phase FIR filter, comprising the following steps: determining the coefficient length of the filter to be an odd number or an even number, and selecting different FIR filter amplitude-frequency response formulas according to the coefficient length; determining an iterative model of the LMS algorithm according to the determined coefficient length of the filter; discretizing frequency points in a filter frequency band, and determining a sequence of frequency points and amplitude pairs in an amplitude-frequency curve; and iterating once for the input value of each frequency point until the iteration function is converged. The design method provided by the invention is simple to realize, high in speed and easy to realize in engineering, can be used for designing a band-pass filter and a low-pass filter, has linear phase, and compensates the unevenness error of a channel on the basis of not influencing the phase information of a signal so as to improve the signal quality.
Description
Technical Field
The invention belongs to the technical field of filter design, and particularly relates to an arbitrary amplitude-frequency response FIR filter design method based on LMS.
Background
Amplitude flatness and phase linearity are important factors influencing the improvement of the performance of a receiver, for a receiving system, a spectrum analysis function is the most basic and widely applied function, and the amplitude flatness in a pass band influences the amplitude measurement precision. When the design of the receiving system is completed, under the condition of knowing the amplitude-frequency curve of the channel, how to design the compensation filter to control the flatness in the receiver channel band within the required tolerance range is a necessary and critical step.
The common FIR filter design method comprises a window function method, an optimal approximation method, an equal ripple approximation method and the like, and only requires the in-band amplitude flatness in the conventional design requirements. The amplitude-frequency characteristic of a hardware system is not flat, so the in-band amplitude of a filter to be designed is arbitrary. The algorithm of the current design method (such as an optimal approximation method and an equal ripple approximation method) is high in complexity and large in engineering application difficulty, and is not suitable for the current scene.
Adaptive filtering is an important content of modern signal processing, and how to adaptively update filter coefficients to filter out a desired signal is solved. The least mean square algorithm (LMS algorithm for short) is one of self-adaptive filtering methods, is based on wiener filtering, is developed by means of the steepest descent algorithm, and iteratively updates filter coefficients to enable the error between the output signal of the filter and the expected signal to be infinitely reduced. A block diagram of a conventional LMS adaptive filtering system implementation is shown in fig. 1.
Disclosure of Invention
In order to solve the above technical problem, the present invention provides a method for designing an arbitrary amplitude-frequency response FIR filter based on LMS, wherein the FIR filter is determined as a linear phase FIR filter, comprising the following steps:
(f0,A0),(f1,A1),(f2,A2),……,(fM-1,AM-1)
wherein f isiIs the frequency, AiIs the corresponding amplitude; turning to the step 4;
and 4, iterating once for the input value of each frequency point until the iteration function is converged.
Preferably, when the coefficient length of the filter is odd, the FIR filter amplitude-frequency response formula:
wherein, |, means taking a complex modulus value, and representing the power gain value of the current FIR filter to the frequency spectrum component at the frequency point ω. Coefficient anAnd filter coefficient bnThe conversion relationship of (a) is as follows:
wherein: omega is a frequency point, and N is more than or equal to 1 and less than or equal to N.
Preferably, when the filter coefficient length N is an even number, the FIR filter amplitude-frequency response formula:
coefficient alphanAnd filter coefficient bnThe relationship of (a) to (b) is as follows:
wherein: omega is a frequency point, and N is more than or equal to 1 and less than or equal to N.
Preferably, the discretization of the frequency points in the filter frequency band includes: discretizing the frequency point omega to obtain:
ωk=2πfk,0≤k≤M-1,
wherein f iskAnd M is the frequency value normalized relative to the sampling rate, and the number of frequency points corresponding to the amplitude-frequency response curve to be fitted is M.
Further, the input signal for each iteration is a vector:
and the weight vector is initialized to a 0-column vector, where T represents the transpose of the vector.
Further, at each iteration of the calculation, the weight vector w (i) is updated:
W(k+1)=w(k)+μ·x(k)·е*(k)
wherein*Conjugate of finger complex number
Desired signal d (i) estimate:
d(k+1)=wH(k+1)·x(k+1)
where H refers to the conjugate transpose of the vector. Estimation error e (i):
e(k+1)=D(k+1)-d(k+1)
obtaining a weight coefficient α:
α=w*
wherein w*Is the updated weight coefficient of the weight of the image,*conjugation of a plurality of fingers; d (i) denotes A0…AM-1The constructed vector.
The design method provided by the invention is simple to realize, high in speed and easy to realize in engineering, can be used for designing a band-pass filter and a low-pass filter, has linear phase, and compensates the unevenness error of a channel on the basis of not influencing the phase information of a signal so as to improve the signal quality.
Drawings
FIG. 1 is a block diagram of LMS lateral adaptive filtering;
FIG. 2 is an iteration error curve;
FIG. 3a filter amplitude frequency response;
fig. 3b compensates for the front and back amplitude-frequency curves.
Detailed Description
The conventional LMS algorithm is used for carrying out self-adaptive filtering on signals, the design of any amplitude-frequency response filter is combined with the LMS algorithm, and stable filter coefficients are iterated by utilizing the LMS self-adaptive theory.
Unlike the conventional LMS algorithm flow, the input signal is not some stable random signal, but is a frequency factor in the filter transfer function, and the desired signal is the required filter amplitude-frequency response. Because the frequency factor is limited, namely the input length of the algorithm is limited, the invention finally obtains stable filter coefficients by adopting a loop iteration method, so that the amplitude-frequency response of the filter coefficients is infinitely close to the expected amplitude-frequency response.
The design method provided by the invention is simple to realize, high in speed and easy to realize in engineering, can be used for designing a band-pass filter and a low-pass filter, has linear phase, and compensates the unevenness error of a channel on the basis of not influencing the phase information of a signal so as to improve the signal quality.
The following detailed description of embodiments of the invention refers to the accompanying drawings.
A. Channel model
For a receiving system, which may be considered a Linear Time Invariant (LTI) system, the response of the system to an arbitrary input signal may be expressed in the form of a unit impulse response. Linear time-invariant systems can be divided into two types: systems with finite long impulse responses (FIR) and systems with infinite long impulse responses (IIR).
The receiver is regarded as an FIR system, the amplitude-frequency response of the filter to be compensated is obtained according to the measured amplitude-frequency response of the system, the FIR filter is designed, and the coefficient of the FIR filter is obtained.
The system function of a FIR filter of length N is:
wherein, bnAre the filter coefficients to be calculated.
Since the invention only designs the filter according to the amplitude-frequency response and does not relate to the phase-frequency response, the FIR filter to be designed is set as a linear-phase FIR filter. At this time, the FIR filter compensates the amplitude-frequency response of the system channel, and the phase information is not changed, but only the same delay is carried out on the in-band signal.
Since the impulse response of the linear phase FIR filter is symmetrical or anti-symmetrical, the invention is called an example by the filter coefficient pair, and can be obtained by the same way under the anti-symmetrical condition.
(1) The filter coefficient length N is odd
FIR filter amplitude-frequency response formula:
coefficient anAnd filter coefficient bnThe relationship of (a) to (b) is as follows:
(2) filter coefficient length N is even
FIR filter amplitude-frequency response formula:
coefficient anAnd filter coefficient bnThe relationship of (a) to (b) is as follows:
B. principle of algorithm
According to the formula of the linear phase FIR filter in A, the amplitude-frequency response of the filter is obtained as a sine function and is obtained by weighting and accumulating coefficients, so that under the requirement of the amplitude-frequency response of the current filter, the algorithm needs to obtain a coefficient anAnd further obtaining the filter coefficient b according to a conversion formulan。
And (5) deriving an iterative model under the LMS algorithm by taking N as an odd number as an example.
Discretizing the frequency point omega of the formula to obtain:
ωk=2πfk,0≤k≤M-1,
wherein f iskAnd M is the frequency value normalized relative to the sampling rate, and the number of frequency points corresponding to the amplitude-frequency response curve to be fitted is M.
Since the amplitude-frequency response of the linear phase FIR filter is symmetrical relative to zero frequency, the amplitude-frequency curve to be fitted can be inIn the meantime. Assume that the sequence of frequency points/amplitude pairs of the amplitude-frequency curve is as follows:
(f0,A0),(f1,A1),(f2,A2),……,(fM-1,AM-1)
FIR filter LMS iterative model:
(1) an iteration mode: and iterating once for the input value of each frequency point until convergence.
(2) The input signals for each iteration are:
(3) the weight vector is initialized to a 0-column vector.
And (3) an iterative process:
and (3) updating the weight vector:
W(k+1)=w(k)+μ·x(k)·е*(k)
desired signal estimation:
d(k+1)=wH(k+1)·x(k+1)
estimation error e (i):
e(k+1)=D(k+1)-d(k+1)
obtaining a weight coefficient α:
α=w*
C. simulation (Emulation)
The iterative error curve of the algorithm is shown in fig. 2 under 40 loop iterations with a 128-order FIR filter, a sampling rate of 100MHz, a bandwidth of 20MHz, and a center frequency of 25 MHz.
From fig. 3(a), it can be seen that the designed amplitude-frequency response of the filter is basically close to the required amplitude-frequency curve, and after calculation and compensation, the amplitude-frequency curve fluctuation obtained by statistics from fig. 3(b) is reduced from 2.9dB to 0.124dB, thereby greatly improving the flatness in the system band.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention and not for limiting, and although the embodiments of the present invention are described in detail with reference to the above preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made on the technical solutions of the embodiments of the present invention without departing from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (6)
1. A design method of an arbitrary amplitude-frequency response FIR filter based on LMS, wherein the FIR filter is determined as a linear phase FIR filter, characterized in that the method comprises the following steps:
step 1, determining the coefficient length of a filter to be an odd number or an even number, and selecting different FIR filter amplitude-frequency response formulas according to the coefficient length; turning to the step 2;
step 2, determining an iterative model of the LMS algorithm according to the determined coefficient length of the filter; turning to step 3;
step 3, discretizing frequency points in a filter frequency band, and determining a sequence of frequency points and amplitude pairs in an amplitude-frequency curve;
(f0,A0),(f1,A1),(f2,A2),……,(fM-1,AM-1)
wherein f isiIs the frequency, AiIs the corresponding amplitude; turning to the step 4;
and 4, iterating once for the input value of each frequency point until the iteration function is converged.
2. The design method of claim 1, wherein when the coefficient length of the filter is odd, the FIR filter amplitude-frequency response formula:
wherein, |, means taking a complex modulus value, representing the power gain value of the current FIR filter to the frequency spectrum component at the frequency point ω; coefficient anAnd filter coefficient bnThe conversion relationship of (a) is as follows:
wherein: omega is a frequency point, and N is more than or equal to 1 and less than or equal to N.
3. The design method of claim 1, wherein when the filter coefficient length N is even, the FIR filter magnitude-frequency response formula:
coefficient anAnd filter coefficient bnThe relationship of (a) to (b) is as follows:
wherein: omega is a frequency point, and N is more than or equal to 1 and less than or equal to N.
4. A design method as claimed in any one of claims 2 or 3, wherein discretizing the bins within the filter band comprises: discretizing the frequency point omega to obtain:
ωk=2πfk,0≤k≤M-1,
wherein f iskAnd M is the frequency value normalized relative to the sampling rate, and the number of frequency points corresponding to the amplitude-frequency response curve to be fitted is M.
6. The design method of claim 5, wherein, at each iteration of the calculation, the weight vector w (i) is updated by:
W(k+1)=w(k)+μ·x(k)·е*(k)
desired signal d (i) estimate:
d(k+1)=wH(k+1)·x(k+1)
wherein H denotes the conjugate transpose of the vector, and the estimation error e (i):
e(k+1)=D(k+1)-d(k+1)
obtaining a weight coefficient a:
α=w*
wherein w*Is the updated weight coefficient, which refers to the complex conjugate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110918349.3A CN113676156B (en) | 2021-08-09 | 2021-08-09 | LMS-based arbitrary amplitude-frequency response FIR filter design method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110918349.3A CN113676156B (en) | 2021-08-09 | 2021-08-09 | LMS-based arbitrary amplitude-frequency response FIR filter design method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113676156A true CN113676156A (en) | 2021-11-19 |
CN113676156B CN113676156B (en) | 2024-01-26 |
Family
ID=78542223
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110918349.3A Active CN113676156B (en) | 2021-08-09 | 2021-08-09 | LMS-based arbitrary amplitude-frequency response FIR filter design method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113676156B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5282155A (en) * | 1992-11-19 | 1994-01-25 | Bell Communications Resarch, Inc. | Adaptive digital filter architecture for parallel output/update computations |
JPH10242737A (en) * | 1997-02-27 | 1998-09-11 | Atr Kankyo Tekiou Tsushin Kenkyusho:Kk | Fir type digital filter and its coefficient arithmetic unit, digital beam forming device and adaptive digital beam forming device |
TW465196B (en) * | 1999-02-26 | 2001-11-21 | Texas Instruments Inc | Phase-shift calculation method, and system implementing it, for a finite-impulse-response (FIR) filter |
US6618740B1 (en) * | 1998-12-31 | 2003-09-09 | Texas Instruments Incorporated | Method and architecture for controlling asymmetry of an LMS adaptation algorithm that controls FIR filter coefficients |
US20030169832A1 (en) * | 2002-03-08 | 2003-09-11 | Michael Schmidt | LMS-based channel estimation |
US20070147490A1 (en) * | 2003-11-11 | 2007-06-28 | Kouji Okamoto | Filter coefficient adjusting circuit |
CN101295969A (en) * | 2008-06-26 | 2008-10-29 | 湖南大学 | Design method of high-order limited impulse response digital filter |
CN102132491A (en) * | 2008-08-25 | 2011-07-20 | 杜比实验室特许公司 | Method for determining updated filter coefficients of an adaptive filter adapted by an lms algorithm with pre-whitening |
CN102195616A (en) * | 2010-03-02 | 2011-09-21 | 哈曼贝克自动***股份有限公司 | Efficient sub-band adaptive FIT-filtering |
CN111903233B (en) * | 2008-10-22 | 2014-06-11 | 中国电子科技集团公司第五十四研究所 | Broadband beam forming method based on specific group delay finite impulse response filter |
CN105680825A (en) * | 2016-02-16 | 2016-06-15 | 天津大学 | Digital filter analytical design method and filter thereof |
CN107576323A (en) * | 2017-08-21 | 2018-01-12 | 陕西华燕航空仪表有限公司 | Based on the combined optical fibre gyro filtering method of FIR and LMS adaptive-filterings |
WO2019170020A1 (en) * | 2018-03-09 | 2019-09-12 | 电信科学技术研究院有限公司 | Method and device for updating finite impulse response filter coefficient vector |
-
2021
- 2021-08-09 CN CN202110918349.3A patent/CN113676156B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5282155A (en) * | 1992-11-19 | 1994-01-25 | Bell Communications Resarch, Inc. | Adaptive digital filter architecture for parallel output/update computations |
JPH10242737A (en) * | 1997-02-27 | 1998-09-11 | Atr Kankyo Tekiou Tsushin Kenkyusho:Kk | Fir type digital filter and its coefficient arithmetic unit, digital beam forming device and adaptive digital beam forming device |
US6618740B1 (en) * | 1998-12-31 | 2003-09-09 | Texas Instruments Incorporated | Method and architecture for controlling asymmetry of an LMS adaptation algorithm that controls FIR filter coefficients |
TW465196B (en) * | 1999-02-26 | 2001-11-21 | Texas Instruments Inc | Phase-shift calculation method, and system implementing it, for a finite-impulse-response (FIR) filter |
US20030169832A1 (en) * | 2002-03-08 | 2003-09-11 | Michael Schmidt | LMS-based channel estimation |
US20070147490A1 (en) * | 2003-11-11 | 2007-06-28 | Kouji Okamoto | Filter coefficient adjusting circuit |
CN101295969A (en) * | 2008-06-26 | 2008-10-29 | 湖南大学 | Design method of high-order limited impulse response digital filter |
CN102132491A (en) * | 2008-08-25 | 2011-07-20 | 杜比实验室特许公司 | Method for determining updated filter coefficients of an adaptive filter adapted by an lms algorithm with pre-whitening |
CN111903233B (en) * | 2008-10-22 | 2014-06-11 | 中国电子科技集团公司第五十四研究所 | Broadband beam forming method based on specific group delay finite impulse response filter |
CN102195616A (en) * | 2010-03-02 | 2011-09-21 | 哈曼贝克自动***股份有限公司 | Efficient sub-band adaptive FIT-filtering |
CN105680825A (en) * | 2016-02-16 | 2016-06-15 | 天津大学 | Digital filter analytical design method and filter thereof |
CN107576323A (en) * | 2017-08-21 | 2018-01-12 | 陕西华燕航空仪表有限公司 | Based on the combined optical fibre gyro filtering method of FIR and LMS adaptive-filterings |
WO2019170020A1 (en) * | 2018-03-09 | 2019-09-12 | 电信科学技术研究院有限公司 | Method and device for updating finite impulse response filter coefficient vector |
Non-Patent Citations (2)
Title |
---|
SUMIT ROY: "Design of Linear Phase FIR Filters Using the LMS Algorithm", 《IEEE TRANSACTIONS ON SIGNAL PROCESSING》, vol. 41, no. 4, pages 1685 - 1689 * |
王谦: "基于LMS算法的自适应次声滤波器设计", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 05, pages 135 - 146 * |
Also Published As
Publication number | Publication date |
---|---|
CN113676156B (en) | 2024-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3216704B2 (en) | Adaptive array device | |
US4038536A (en) | Adaptive recursive least mean square error filter | |
JP4398146B2 (en) | Adaptive filter | |
US6804313B2 (en) | Approach for processing data received from a communications channel | |
EP1157514B1 (en) | Kalman equalisation in multicarrier receivers | |
US5267266A (en) | Fast converging adaptive equalizer using pilot adaptive filters | |
US6829296B1 (en) | Spectrally flat time domain equalizer and methods | |
US7680266B2 (en) | System and method for adaptive reduced-rank parameter estimation using an adaptive decimation and interpolation scheme | |
CN107425929B (en) | Non-auxiliary data equalization method for fading channel under Alpha stable distributed noise | |
JP3011948B2 (en) | Digital equalizer | |
WO2021164195A1 (en) | Step size adjustment method and apparatus for adaptive equalizer, signal receiver and system | |
WO2002078312A1 (en) | System for convolutional echo cancellation by iterative autocorrelation | |
CN105721729B (en) | Based on the sparse proportional echo cancel method for reusing weight coefficient affine projection of block | |
Yadav et al. | performance analyis of LMS adaptive FIR filter and RLS adaptive fir filter for noise cancellation | |
CN111817992B (en) | Digital channel group delay equalizer and implementation method and device thereof | |
CN113676156B (en) | LMS-based arbitrary amplitude-frequency response FIR filter design method | |
CN108667538B (en) | Combined estimation method for time delay and amplitude attenuation in complex noise environment | |
WO2002078313A1 (en) | System for convolutional echo cancellation by iterative autocorrelation | |
JP2004064681A (en) | Adaptive filter | |
CN102137052B (en) | Variable step length least mean square channel equilibrium method based on gradient vector | |
JP7208570B2 (en) | receiver | |
CN106105032B (en) | System and method for sef-adapting filter | |
Lampl | Implementation of adaptive filtering algorithms for noise cancellation | |
Prasad et al. | Implementation of Optimized Adaptive LMS Noise Cancellation System to Enhance Signal to Noise Ratio | |
CN117040489B (en) | Spline self-adaptive filter with sparse constraint |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |