CN103888104B - Method and system for designing FIR digital filter - Google Patents

Method and system for designing FIR digital filter Download PDF

Info

Publication number
CN103888104B
CN103888104B CN201410065055.0A CN201410065055A CN103888104B CN 103888104 B CN103888104 B CN 103888104B CN 201410065055 A CN201410065055 A CN 201410065055A CN 103888104 B CN103888104 B CN 103888104B
Authority
CN
China
Prior art keywords
model
filter
population
wave filter
fir digital
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.)
Active
Application number
CN201410065055.0A
Other languages
Chinese (zh)
Other versions
CN103888104A (en
Inventor
李炯城
丁胜培
杨超
肖恒辉
陈运动
赖志坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Planning and Designing Institute of Telecommunications Co Ltd
Original Assignee
Guangdong Planning and Designing Institute of Telecommunications Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Planning and Designing Institute of Telecommunications Co Ltd filed Critical Guangdong Planning and Designing Institute of Telecommunications Co Ltd
Priority to CN201410065055.0A priority Critical patent/CN103888104B/en
Publication of CN103888104A publication Critical patent/CN103888104A/en
Application granted granted Critical
Publication of CN103888104B publication Critical patent/CN103888104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Provided are a method and system for designing an FIR digital filter. The method comprises the steps that modeling is carried out on the FIR digital filter according to a filter design need to obtain a mathematic model of the filter; the parameter limiting conditions of the filter are detailed according to the mathematic model to obtain a condition weighting model; the condition weighting model is solved through a genetic algorithm and a least square method to obtain an optimal filter coefficient; the FIR digital filter meeting actual filter needs is acquired according to the filter coefficient. According to the technical scheme, filter design with different properties can be obtained, the optimal filter design coefficient is obtained, and the optimal FIR digital filter is designed.

Description

Fir digital filter design method and system
Technical field
The present invention relates to digital filter design field, more particularly to a kind of fir digital filter design method and be System.
Background technology
In a wireless communication system, the receipt signal of terminal is typically mingled with noise and some useless signal components, needs Filtered by wave filter.For this reason, wave filter has very in modern signal processing and electrical application technology field Important using value.Traditional analog filter exist design complexity, huge structure, original paper quantity many shortcomings of.With meter Extensive application, the research and development of digital filter and application in wave filter design field for the calculation machine technology large scale integrated circuit technology Become main flow.Compared with analog filter, digital filter has high precision, and motility is good, the advantages of be easy to large-scale integrated, Current study hotspot focuses primarily upon the optimization design of digital filter.
Based on the actual performance of digital filter, digital filter is in signal processing, geologic prospect, digital communication, image There is very important effect in the fields such as transmission, Self Adaptive Control, and the optimization design of digital filter has very big practical significance.By In ideal filter, there is non-causality, for real time signal processing application, ideal filter is physically not can achieve , in actual design, designer typically can design to be had causal wave filter to approach ideal frequency response feature.
At present, design linear phase finite impulse response (FIR) (finite impulse response, fir) wave filter is main There are window function metht, Frequency Sampling Method, Chebyshev (chebyshev) approximatioss etc..Wherein window function metht is will using window function Ideal filter unit impact response unlimited in time is blocked the filter approximating ideal filter so that being designed Performance requirement.But window function metht design wave filter is very high for the types entail of window function and less efficient.Using frequency During rate method of sampling design fir wave filter, typically desired frequency response is divided at equal intervals frequency band.Simultaneously in order to slacken side Lobe, needs the frequency band of wave filter intermediate zone is optimized.Frequency Sampling Method is by up-sampling in frequency, and in sampled point On approach ideal filter frequency response with the method for interpolation.The design principle of Chebyshev approximation is by ideal frequency response Weighted approximation error and actual frequency response between is evenly dispersed into this passband and the stopband of wave filter, and minimizes The maximum error of wave filter.
Which kind of fir filter design method is all that ideal filter is approached.In order to more easily portray design With the approximation ratio of ideal filter, some scholars propose minimum mean-squared error criterion to the wave filter obtaining, the basis of this criterion Matter is so that the error energy of the filter freguency response and ideal filter frequency response actually obtaining is minimum.
With regard to based on mean square error minimize criterion the existing technical scheme of fir Optimal Design of Digital Filters just like Under:
Firstth, determine intermediate zone sample value by genetic algorithm, replace traditional look-up table, obtain at faster speed Optimize solution.Secondth, the design requirement according to expected frequency characteristic, sets up the Optimized model of window function weights, and by quick Self-adapted genetic algorithm carrys out solving-optimizing value.
Be directed to the first scheme above-mentioned, its be mainly characterized by original look-up table is replaced with genetic algorithm it is desirable to Obtained with speed faster and optimize solution.However, cannot ensure that trying to achieve solution is optimal solution using genetic algorithm, and algorithm implements tool There is certain complexity, the solution time is also longer so that it can not directly instruct engineering effort, the final solution obtaining is not It is exactly necessarily optimal solution, precision is low.And for second scheme, it is mainly characterized by and goes to solve window function using genetic algorithm Parameter, Study on Problems present in its filter design method substantially based on window function exists, including the choosing of window function Take, the Optimal Setting time length of parameter etc..
In sum, existing fir digital filter design techniques it is impossible to according to the design requirement of practical filter to main lobe and The performance requirement of secondary lobe automatically adjusts it is difficult to obtain meeting the wave filter of reality, in the face of minimization problem it is difficult to obtain Excellent solution, thus accordingly optimum wave filter design ratio can not be given.
Content of the invention
Based on this it is necessary to be directed to the problems referred to above, provide a kind of fir digital filter design method and system, can basis Actual wave filter design requirement automatically adjusts to the performance requirement of main lobe and secondary lobe, to obtain meeting the filtering of reality Device, and can quickly obtain optimal solution, thus providing accordingly optimum wave filter design ratio.
A kind of fir digital filter design method, comprises the steps:
Fir digital filter is modeled obtain with the mathematical model of wave filter according to wave filter design requirement;
The parameter restrictive condition of wave filter is carried out refine acquisition condition weighted model according to described mathematical model;
Solve described condition weighted model using genetic algorithm and method of least square and obtain optimum filter coefficient;
Obtain the fir digital filter meeting described actual filtering demands according to described filter coefficient.
A kind of fir digital filter design system, comprising:
Mathematical modeling module, for being modeled to fir digital filter obtaining wave filter according to wave filter design requirement Mathematical model;
Condition refinement module, obtains bar for the parameter restrictive condition of wave filter being carried out with refinement according to described mathematical model Part weighted model;
Model solution module, obtains optimum for solving described condition weighted model using genetic algorithm and method of least square Filter coefficient;
Wave filter designs module, for obtaining the fir number meeting described actual filtering demands according to described filter coefficient Word wave filter.
Above-mentioned fir digital filter design method and system, can enter to secondary lobe and main lobe according to actual different demands Row weighted sum, thus can get the wave filter design of different performance, Algorithm for Solving process is by genetic algorithm and method of least square Combine, can the optimum filter factor of overall fast search, obtain the wave filter of the optimum meeting actual demand, accelerate algorithm Convergence rate, improve the search precision of algorithm, such that it is able to obtain optimal filter design ratio, design optimum Fir digital filter.
Brief description
Fig. 1 is fir digital filter design method flow diagram of the present invention;
Fig. 2 is genetic algorithm flow chart;
Fig. 3 is fir digital filter design system structure diagram of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawings the specific embodiment of the fir digital filter design method and system of the present invention is made in detail Description.
With reference to shown in Fig. 1, Fig. 1 is fir digital filter design method flow diagram of the present invention;Mainly comprise the steps:
Step s10, is modeled obtaining the mathematical modulo of wave filter according to wave filter design requirement to fir digital filter Type.
In this step, mainly according to actual different demands, secondary lobe and main lobe are weighted sue for peace, thus can obtain To the wave filter design of different performances, due in the design of wave filter, needing to ensure that frequency spectrum passes through main lobe, secondary lobe as far as possible Try one's best little to stop the spectral decay of this frequency range, using Minimum Mean Square Error it is impossible to be adjusted according to the actual requirements.
Therefore, in present invention design, it is filtered the design of device by the way of weighting, such that it is able to according to actual Design requirement automatically adjusts to the performance requirement of main lobe and secondary lobe, to obtain meeting the wave filter of reality.
In one embodiment, for the modeling method of step s10, specifically can be such that
First, set up the filter design model of weighting;Wherein, use hd(ejw) represent ideal filter frequency response, h (ejw) Represent the filter freguency response actually obtaining, with e (ejw) representing frequency response error, filter design model concrete form is such as Under:
e(ejw)=hd(ejw)-h(ejw). (1)
Calculate mean square error e2, e2Expression formula is
e 2 = 1 2 π &integral; - π π | e ( e jw ) | 2 dw = 1 2 π &integral; - π π | h d ( e jw ) - h ( e jw ) | 2 dw . - - - ( 2 )
Using fast Fourier transform (fft), above-mentioned two formulas are processed, can obtain
h d ( e jw ) = σ n = ∞ ∞ h d ( n ) e - jwn h ( e jw ) = σ n = 0 n - 1 h ( n ) e - jwn . - - - ( 3 )
Above formula (3) is substituted in mean square error formula (2), expression formula is as follows:
e ( e jw ) = h d ( e jw ) - h ( e jw ) = σ n = 0 n - 1 [ h d ( n ) - h ( n ) ] e - jwn + σ n = n + ∞ h d ( n ) e - jwn . - - - ( 4 )
According to Pa Saiwa formula, can obtain
e 2 = 1 2 π &integral; - π π | e ( e jw ) | 2 dw = σ n = 0 n - 1 [ h d ( n ) - h ( n ) ] e - jwn + σ n = n + ∞ h d ( n ) e - jwn . - - - ( 5 )
In above formula, equation second left and formula are constant, and with design load h (n), n=0,1 ..., n-1 are unrelated;Make Obtain e2Minimum, only needs first and formula minimum, and here only needs to pay close attention to equation right-hand member Part I.
In order to obtain filter factor it is only necessary to m stepped-frequency signal w is taken on [- π, π]k(k=0,1 ..., m-1), obtains One group of h (n), n=0,1 ..., n-1 so that
σ k = 0 m - 1 | σ n = 0 n - 1 h ( n ) e jn w k - h d ( w k ) 2 - - - ( 6 )
Minimum, the value of acquisition is minimum wave filter design parameter value.
Further, simple and easily operated in order to calculate, solution procedure can be converted into the operation of matrix and vector, Specific as follows:
Order
b = e - j w 1 e - 2 j w 1 · · · e - jn w 1 · · · · · · · · · e - j w i e - 2 j w i · · · e - jn w i · · · · · · · · · e - j w m e - 2 j w m · · · e - jn w m m × n - - - ( 7 )
Wherein, ξ=[h (0), h (1) ... h (n-1)]t, h=[hd(w1),hd(w2),…,hd(wm)], then above-mentioned weighted filtering Design a model and be reduced to
min | | b · ξ - h | | 2 2 - - - ( 8 )
In formula,Represent two norms, for described two norms, i.e. x=(x1,x2,…,xn), then | | x | | 2 2 = x 1 2 + x 2 2 + · · · + x n 2 .
It is to be understood that, above-mentioned modeling method and its mathematical model, are based on the preferred filter design setting up weighting Model method and its model representation form, are not limited to the technical scheme illustrate in above preferred embodiment in practice.
Step s20, carries out to the parameter restrictive condition of wave filter refining acquisition condition weighting mould according to described mathematical model Type.
In this step, the actual demand main forms being directed to wave filter design are main lobe and secondary lobe attention rate, According to the actual requirements the parameter restrictive condition of wave filter is refined, thus obtaining the weighted model under this restrictive condition.
In one embodiment, in order to improve fir performance of filter it is desirable to the main lobe width of window function is as narrow as possible, with Obtain narrower intermediate zone;The relative value of side lobe height is as little as possible, and quantity is as few as possible, with little, the stopband that obtains passband ripple Decay is big, all stable feature in passband and stopband, and the response of wave filter actual frequency so can be made preferably to approach preferable frequency Rate responds.
Concrete processing method is to first set up the weight function matrix of correlation, and concrete form is as follows
Wherein,Now, the weighted model of formula (8) is rewritten into
min f | | a ( b · ξ - h ) | | 2 2 - - - ( 10 )
In formula,Represent two norms, f is object function.
Need also exist for stating, the above-mentioned parameter restrictive condition to wave filter refines, be to be implemented based on preferred Example, is not limited to the technical scheme illustrate in above preferred embodiment in practice.
Step s30, solves described condition weighted model using genetic algorithm and method of least square and obtains optimum wave filter Coefficient.
In this step, will the genetic algorithm in evolution algorithm combine with conjugate gradient algorithms, thus can the overall situation fast The optimum filter factor of speed search.This algorithm makes full use of the ability of searching optimum of genetic algorithm and the quick office of conjugate gradient method Portion's search capability, accelerates the convergence rate of genetic algorithm, improves the search precision of genetic algorithm.Therefore, optimum can be drawn Wave filter design ratio.
Specifically, be rapid solving model optimal solution, the present invention is by the genetic algorithm in evolution algorithm and traditional classical Conjugate gradient algorithms improve and connected applications respectively, this paper abbreviation genetic algorithm.Respectively taken by relevant art means The advantage of algorithm, is solved using the ability of searching optimum of genetic algorithm and the Fast Convergent characteristic of conjugate gradient method.Pass through Conjugate gradient algorithms improve the convergence rate of genetic algorithm, so as to faster converge to accurate solution, are helped altogether by genetic algorithm Yoke gradient method jumps out locally optimal solution, and conjugate gradient method is embedded into genetic algorithm, need not be by all of in Population in Genetic Algorithms Body is performed both by conjugate gradient method, only need to consider to the individual execution in Population in Genetic Algorithms center conjugate gradient method.
In one embodiment, the method for concrete solving model acquisition filter coefficient comprises the steps:
Set up the model of genetic algorithm according to described weighted model;Specifically, population number is m, individual respectively ai∈ rn,i=1,2,…,m.
The group center of planting of described model is set to the initial search point that conjugate gradient algorithms are processed;Wherein, described center is The meansigma methodss of population at individual, expression formula is:M is population number, individual respectively ai∈rn,i=1,2,…,m;Due to Conjugate gradient method has quadratic terminability, and that is, for quadratic function, algorithm can terminate after n step iteration.
Execution n step conjugate gradient algorithms process and obtain result a(n), calculate a(n)Fitness function, and according to a(n)Generate one Individuality, this individuality is added in population and replaces the minimum individuality of fitness value;Specifically, for non-quadratic function, execute n Step also can get preferable effect, therefore, by a0Initial search point as conjugate gradient method simultaneously executes n step conjugate gradient method, Obtained result is a(n).Calculate a(n)Fitness function, and according to a(n)Generate an individual and then be then added to population In, to replace the individuality of fitness value minimum, so that population scale remains m.
Circulation execution genetic algorithm iterative processing next time and conjugate gradient algorithms and process step, i.e. circulation executes mixing Genetic algorithm, until solving the optimal solution of weighted model, this optimal solution is set to filter coefficient.
In order to become apparent from the algorithmic procedure of step s30, illustrate algorithm examples below in conjunction with the accompanying drawings.
With reference to shown in Fig. 2, Fig. 2 is genetic algorithm flow chart, mainly comprises the steps:
Step a, initialization produce initial population;Wherein, setting population scale is m, and crossover probability is pc, mutation probability is pm, setting iterationses are n;
Step b, calculating individual adaptation degree function f, i.e. object function;
Step c, execution crossover operator and mutation operator;
Step d, the center a of calculating population0
Step e, the Searching point of initialization conjugate gradient algorithms, will a0It is set to the initial ranging of conjugate gradient algorithms process Point;Wherein, k=1 is set, iterationses n is set0, required precision ε is set, and executes following algorithm process:
If step fThen stop calculating;Otherwise putWherein, β k - 1 = 0 , k = 1 | | ▿ f ( a ( k ) ) | | 2 | | ▿ f ( a ( k - 1 ) ) | | 2 , k > 1 ;
Step g, carry out linear search, solve one-dimensional problem: max φ (a)=f (a(k)+αd(k)), obtain αk, put a(k)=a(k) +akd(k);Make k=k+1, turn and go execution step f, and result of calculation is designated as a(n)
Step h, calculating a(n)Fitness function, and according to a(n)Generate an individual, add in population, replace suitable in population The minimum individuality of response, turns and goes execution step c;
Step i, iteration terminate, and export optimal solution, are set to filter coefficient.
The above-mentioned genetic algorithm based on the present invention is it is only necessary to being alternately performed genetic algorithm to the center individuality of population and being total to Yoke gradient method, thus can make full use of the searching characteristic of genetic algorithm and the Fast Convergent characteristic of conjugate gradient method, Algorithm is enable rapidly to converge to optimal solution.
Step s40, obtains the fir digital filter meeting described actual filtering demands according to described filter coefficient.
In this step, mainly according to the calculated filter coefficient of preceding step, design meets actual demand Optimum fir digital filter.
Summary fir digital filter design method, according to actual different demands, is filtered by the way of weighting The design of ripple device, is weighted to secondary lobe and main lobe suing for peace, performance need that can be according to actual design requirement to main lobe and secondary lobe Ask and automatically adjust, thus can get the wave filter design of different performances;In derivation algorithm, in the face of minimization problem, Using genetic algorithm, the genetic algorithm in evolution algorithm is combined with traditional conjugate gradient algorithms, thus can the overall situation The optimum filter factor of fast search.This algorithm makes full use of the ability of searching optimum of genetic algorithm and the quick of conjugate gradient method Local search ability, accelerates the convergence rate of genetic algorithm, improves the search precision of genetic algorithm.Thus optimum can be drawn Wave filter design ratio, according to filter factor, can obtain the wave filter of the optimum meeting actual demand.
With reference to shown in Fig. 3, Fig. 1 is fir digital filter design system structure diagram of the present invention;Specifically include that
Mathematical modeling module 10, for being modeled to fir digital filter obtaining filtering according to wave filter design requirement The mathematical model of device;
Condition refinement module 20, obtains for the parameter restrictive condition of wave filter being carried out with refinement according to described mathematical model Condition weighted model;
Model solution module 30, obtains for solving described condition weighted model using genetic algorithm and method of least square Excellent filter coefficient;
Wave filter designs module 40, for obtaining the fir meeting described actual filtering demands according to described filter coefficient Digital filter.
In one embodiment, mathematical modeling module 10 is further used for:
Filter design model according to the input foundation weighting of wave filter design requirement:
e(ejw)=hd(ejw)-h(ejw).
In formula, hd(ejw) represent ideal filter frequency response, h (ejw) represent the filter freguency response actually obtaining, e (ejw) represent frequency response error;
Calculate mean square eikonal equation:
e 2 = σ n = 0 n - 1 [ h d ( n ) - h ( n ) ] e - jwn + σ n = n + ∞ h d ( n ) e - jwn .
In formula, e2Represent mean square error, wherein:
h d ( e jw ) = σ n = ∞ ∞ h d ( n ) e - jwn h ( e jw ) = σ n = 0 n - 1 h ( n ) e - jwn .
Mathematical model according to mean square eikonal equation acquisition wave filter:
min | | b · ξ - h | | 2 2
Wherein:
ξ=[h(0),h(1),…h(n-1)]t,
h=[hd(w1),hd(w2),…,hd(wm)]
b = e - j w 1 e - 2 j w 1 · · · e - jn w 1 · · · · · · · · · e - j w i e - 2 j w i · · · e - jn w i · · · · · · · · · e - j w m e - 2 j w m · · · e - jn w m m × n
In formula,Represent two norms, wkM stepped-frequency signal on [- π, π] for (k=0,1 ..., m-1) expression, h (n), N=0,1 ..., n-1 makes formula for one group:The value obtaining is minimum wave filter design parameter Value.
In one embodiment, condition refinement module 20 is further used for:
Set up the related weight function matrix a of wave filter actual frequency response:
Wherein, a is weight function matrix,
According to weight function matrix a calculating weighted model:
In formula,Represent two norms, f is object function.
In one embodiment, model solution module 30 is further used for:
Set up the model of genetic algorithm according to described weighted model;
The center of the population of described model is set to the initial search point of conjugate gradient algorithms process;Wherein, described center For the meansigma methodss of population at individual, expression formula is:M is population number, individual respectively ai∈rn,i=1,2,…,m;
Execution n step conjugate gradient algorithms process and obtain result a(n), calculate a(n)Fitness function, and according to a(n)Generate one Individuality, this individuality is added in population and replaces the minimum individuality of fitness value;
Circulation execution genetic algorithm iterative processing next time and conjugate gradient algorithms process step, until solve weighting mould The optimal solution of type, is set to filter coefficient.
Further, model solution module 30 specifically includes for the algorithm solving described condition weighted model:
A, initialization produce initial population;Wherein, setting population scale is m, and crossover probability is pc, mutation probability is pmIf, Putting iterationses is n;
B, calculating individual adaptation degree function f;
C, execution crossover operator and mutation operator;
D, the center a of calculating population0
E, by a0It is set to the initial search point of conjugate gradient algorithms process;Wherein, k=1 is set, iterationses n is set0If, Put required precision ε, and execute following algorithm process:
If fThen stop calculating;Otherwise putWherein, β k - 1 = 0 , k = 1 | | ▿ f ( a ( k ) ) | | 2 | | ▿ f ( a ( k - 1 ) ) | | 2 , k > 1 ;
G, carry out linear search, solve One Dimension Optimization Problems: max φ (α)=f (a(k)+αd(k)), obtain αk, put a(k)=a(k)kd(k);Make k=k+1, turn and go execution step f, and result of calculation is designated as a(n)
H, calculating a(n)Fitness function, generate new population, that is, according to a(n)Generate an individual, add in population, Replace the minimum individuality of fitness in population, turn and go execution step c;
I, iteration terminate, and export optimal solution, are set to filter coefficient.
The fir digital filter design system of the present invention is corresponded with the fir digital filter design method of the present invention, All it is applied to fir numeral in the technical characteristic of the embodiment elaboration of above-mentioned fir digital filter design method and its advantage In the embodiment of wave filter design system, hereby give notice that.
Embodiment described above only have expressed the several embodiments of the present invention, and its description is more concrete and detailed, but simultaneously Therefore the restriction to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, some deformation can also be made and improve, these broadly fall into the guarantor of the present invention Shield scope.Therefore, the protection domain of patent of the present invention should be defined by claims.

Claims (10)

1. a kind of fir digital filter design method is it is characterised in that comprise the steps:
Fir digital filter is modeled obtain with the mathematical model of wave filter according to wave filter design requirement;Described mathematical modulo Type is:
min | | b · ξ - h | | 2 2
Wherein:
ξ=[h (0), h (1), k h (n-1)]t,
H=[hd(w1),hd(w2),k,hd(wm)]
b = e - jw 1 e - 2 jw 1 l e - jnw 1 l l l e - jw i e - 2 jw i l e - jnw i l l l e - jw m e - 2 jw m l e - jnw m m × n
In formula,Represent two norms, wk(k=0,1, λ, m-1) represents m stepped-frequency signal on [- π, π], h (n), n= 0,1, λ, n-1 make formula for one group:The value obtaining is minimum wave filter design parameter value;
The parameter restrictive condition of wave filter is carried out refine acquisition condition weighted model according to described mathematical model;Described weighting mould Type is:In formula,Represent two norms, f is object function, wherein,
Solve described condition weighted model using genetic algorithm and method of least square and obtain optimum filter coefficient;
Obtain the fir digital filter meeting described actual filtering demands according to described filter coefficient.
2. fir digital filter design method according to claim 1 is it is characterised in that according to wave filter design requirement The step that fir digital filter is modeled obtain with the mathematical model of wave filter includes:
Filter design model according to the input foundation weighting of wave filter design requirement:
e(ejw)=hd(ejw)-h(ejw).
In formula, hd(ejw) represent ideal filter frequency response, h (ejw) represent the filter freguency response actually obtaining, e (ejw) Represent frequency response error;
Calculate mean square eikonal equation:
e 2 = σ n = 0 n - 1 [ h d ( n ) - h ( n ) ] e - j w n + σ n = n + ∞ h d ( n ) e - j w n .
In formula, e2Represent mean square error, wherein:
h d ( e j w ) = σ n = - ∞ ∞ h d ( n ) e - j w n h ( e j w ) = σ n = 0 n - 1 h ( n ) e - j w n .
Obtain the mathematical model of wave filter according to mean square eikonal equation.
3. fir digital filter design method according to claim 1 is it is characterised in that according to described mathematical model pair The step that the parameter restrictive condition of wave filter carries out refining acquisition condition weighted model includes:
Set up the related weight function matrix α of wave filter actual frequency response, weighted model is calculated according to weight function matrix α.
4. fir digital filter design method according to claim 1 is it is characterised in that utilize genetic algorithm and minimum The step that square law solves the filter coefficient that described condition weighted model obtains optimum includes:
Set up the model of genetic algorithm according to described weighted model;
The group center of planting of described model is set to the initial search point that conjugate gradient algorithms are processed;Wherein, described center is population Individual meansigma methodss, expression formula is:M is population number, individual respectively ai∈rn, i=1,2, k, m;
Execution n step conjugate gradient algorithms process and obtain result a(n), calculate a(n)Fitness function, and according to a(n)Generate one Individuality, this individuality is added in population and replaces the minimum individuality of fitness value;
Circulation execution genetic algorithm iterative processing next time and conjugate gradient algorithms process step, until solve weighted model Optimal solution, is set to filter coefficient.
5. fir digital filter design method according to claim 4 is it is characterised in that utilize genetic algorithm and minimum The step that square law solves the filter coefficient that described condition weighted model obtains optimum specifically includes:
A, initialization produce initial population;Wherein, setting population scale is m, and crossover probability is pc, mutation probability is pm, setting changes Generation number is n;
B, calculating individual adaptation degree function f;
C, execution crossover operator and mutation operator;
D, the center a of calculating population0
E, by a0It is set to the initial search point of conjugate gradient algorithms process;Wherein, k=1 is set, iterationses n is set0, setting essence Degree requires ε, and executes following algorithm process:
If fThen stop calculating;Otherwise putWherein,
G, carry out linear search, solve one-dimensional problem: max φ (α)=f (a(k)+αd(k)), obtain αk, put a(k)=a(k)kd(k); Make k=k+1, turn and go execution step f, and result of calculation is designated as a(n)
H, calculating a(n)Fitness function, generate new population, that is, according to a(n)Generate an individual, add in population, replace The minimum individuality of fitness in population, turns and goes execution step c;
I, iteration terminate, and export optimal solution, are set to filter coefficient.
6. a kind of fir digital filter design system is it is characterised in that include:
Mathematical modeling module, for being modeled obtaining the number of wave filter according to wave filter design requirement to fir digital filter Learn model;Described mathematical model is:
min | | b · ξ - h | | 2 2
Wherein:
ξ=[h (0), h (1), k h (n-1)]t,
H=[hd(w1),hd(w2),k,hd(wm)]
b = e - jw 1 e - 2 jw 1 l e - jnw 1 l l l e - jw i e - 2 jw i l e - jnw i l l l e - jw m e - 2 jw m l e - jnw m m × n
In formula,Represent two norms, wk(k=0,1, λ, m-1) represents m stepped-frequency signal on [- π, π], h (n), n= 0,1, λ, n-1 make formula for one group:The value obtaining is minimum wave filter design parameter Value;
Condition refinement module, adds for the parameter restrictive condition of wave filter being carried out with refinement acquisition condition according to described mathematical model Power model;Described weighted model is:In formula,Represent two norms, f is object function, wherein,
Model solution module, obtains optimum filter for solving described condition weighted model using genetic algorithm and method of least square Ripple device coefficient;
Wave filter designs module, for obtaining the fir numeral filter meeting described actual filtering demands according to described filter coefficient Ripple device.
7. fir digital filter design system according to claim 6 is it is characterised in that mathematical modeling module is further For:
Filter design model according to the input foundation weighting of wave filter design requirement:
e(ejw)=hd(ejw)-h(ejw).
In formula, hd(ejw) represent ideal filter frequency response, h (ejw) represent the filter freguency response actually obtaining, e (ejw) Represent frequency response error;
Calculate mean square eikonal equation:
e 2 = σ n = 0 n - 1 [ h d ( n ) - h ( n ) ] e - j w n + σ n = n + ∞ h d ( n ) e - j w n .
In formula, e2Represent mean square error, wherein:
h d ( e j w ) = σ n = - ∞ ∞ h d ( n ) e - j w n h ( e j w ) = σ n = 0 n - 1 h ( n ) e - j w n .
Obtain the mathematical model of wave filter according to mean square eikonal equation.
8. fir digital filter design system according to claim 6 is it is characterised in that condition refinement module is further For:
Set up the related weight function matrix α of wave filter actual frequency response, weighted model is calculated according to weight function matrix α.
9. fir digital filter design system according to claim 6 is it is characterised in that model solution module is further For:
Set up the model of genetic algorithm according to described weighted model;
The group center of planting of described model is set to the initial search point that conjugate gradient algorithms are processed;Wherein, described center is population Individual meansigma methodss, expression formula is:M is population number, individual respectively ai∈rn, i=1,2, k, m;
Execution n step conjugate gradient algorithms process and obtain result a(n), calculate a(n)Fitness function, and according to a(n)Generate one by one Body, this individuality is added in population and replaces the minimum individuality of fitness value;
Circulation execution genetic algorithm iterative processing next time and conjugate gradient algorithms process step, until solve weighted model Optimal solution, is set to filter coefficient.
10. fir digital filter design system according to claim 9 is it is characterised in that model solution module is used for asking The algorithm solving described condition weighted model specifically includes:
A, initialization produce initial population;Wherein, setting population scale is m, and crossover probability is pc, mutation probability is pm, setting changes Generation number is n;
B, calculating individual adaptation degree function f;
C, execution crossover operator and mutation operator;
D, the center a of calculating population0
E, by a0It is set to the initial search point of conjugate gradient algorithms process;Wherein, k=1 is set, iterationses n is set0, setting essence Degree requires ε, and executes following algorithm process:
If fThen stop calculating;Otherwise putWherein,
G, carry out linear search, solve One Dimension Optimization Problems: max φ (α)=f (a(k)+αd(k)), obtain αk, put a(k)=a(k)kd(k);Make k=k+1, turn and go execution step f, and result of calculation is designated as a(n)
H, calculating a(n)Fitness function, generate new population, that is, according to a(n)Generate an individual, add in population, replace The minimum individuality of fitness in population, turns and goes execution step c;
I, iteration terminate, and export optimal solution, are set to filter coefficient.
CN201410065055.0A 2014-02-25 2014-02-25 Method and system for designing FIR digital filter Active CN103888104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410065055.0A CN103888104B (en) 2014-02-25 2014-02-25 Method and system for designing FIR digital filter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410065055.0A CN103888104B (en) 2014-02-25 2014-02-25 Method and system for designing FIR digital filter

Publications (2)

Publication Number Publication Date
CN103888104A CN103888104A (en) 2014-06-25
CN103888104B true CN103888104B (en) 2017-01-25

Family

ID=50956845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410065055.0A Active CN103888104B (en) 2014-02-25 2014-02-25 Method and system for designing FIR digital filter

Country Status (1)

Country Link
CN (1) CN103888104B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270118B (en) * 2014-09-03 2017-05-03 浙江理工大学 Design method of filter coefficient in filter-and-forward relay network
CN106100608B (en) * 2015-05-01 2019-02-05 中国人民解放军海军大连舰艇学院 Weighted least-squares airspace matrix filter design method
CN105677957B (en) * 2015-12-31 2020-06-05 中国人民解放军93209部队 Design method and device for approximate accurate reconstruction cosine modulation filter bank
CN106054318B (en) * 2016-06-28 2019-04-02 上海大学 The design method of one-dimensional membrane cavity type unequal band width optical interleaver
CN106374879A (en) * 2016-11-21 2017-02-01 河海大学常州校区 FIR filter optimization method based on effective CSE
CN107733517B (en) * 2017-09-22 2019-11-15 中国人民解放军国防科技大学 Satellite navigation channel equalization method based on small number of low-order FIR filters
CN109921763B (en) * 2019-02-26 2021-10-22 华南理工大学 FIR filter for reducing multipliers and output calculation method thereof
CN113691238B (en) * 2021-10-22 2022-03-15 南通海美电子有限公司 Filter matching method and system based on genetic algorithm
CN115542730A (en) * 2022-11-02 2022-12-30 西南科技大学 FIR digital filter parameter optimization method based on adaptive chaotic genetic algorithm

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425152A (en) * 2008-12-12 2009-05-06 湖南大学 Design method for FIR filter based on learning rate changing neural net
US8279984B1 (en) * 2003-03-25 2012-10-02 Marvell International, Ltd. System and method for controlling gain and timing phase in a presence of a first least mean square filter using a second adaptive filter
CN103152012A (en) * 2013-03-04 2013-06-12 河海大学常州校区 Far-infrared (FIR) filter designing method capable of reducing pass-band group delay error

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070153889A1 (en) * 2006-01-04 2007-07-05 Norton David E Jr Application of leakage to an adaptive equalizer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8279984B1 (en) * 2003-03-25 2012-10-02 Marvell International, Ltd. System and method for controlling gain and timing phase in a presence of a first least mean square filter using a second adaptive filter
CN101425152A (en) * 2008-12-12 2009-05-06 湖南大学 Design method for FIR filter based on learning rate changing neural net
CN103152012A (en) * 2013-03-04 2013-06-12 河海大学常州校区 Far-infrared (FIR) filter designing method capable of reducing pass-band group delay error

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于自适应遗传算法 FIR 数字滤波器优化设计;黄猛等;《现代电子技术》;20100115;第2010年卷(第2期);参见摘要,第1节,第3节,第5节 *
嵌入共轭梯度算子的遗传算法;郑洲顺等;《上饶师范学院学报》;20080630;第28卷(第3期);参见摘要,第5节 *

Also Published As

Publication number Publication date
CN103888104A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN103888104B (en) Method and system for designing FIR digital filter
CN110334580A (en) The equipment fault classification method of changeable weight combination based on integrated increment
CN104133241B (en) Wave field separation method and apparatus
Jiang et al. WLS design of sparse FIR digital filters
CN103544378A (en) Method for calculating harmonic wave impedance of alternating current system for direct current transmission
CN102609598B (en) Method for performing electromagnetic transient-state simulation to large power system
CN104283527B (en) Method and device for configuring boundary frequency band of efficient filter rapidly
CN108092644B (en) Design method of sparse two-dimensional FIR (finite impulse response) notch filter with accurately adjustable notch frequency
Dörfler et al. Spectral analysis of synchronization in a lossless structure-preserving power network model
CN110362937B (en) Electromagnetic transient simulation method and system for modular multilevel converter
CN107315872A (en) A kind of efficient structure frequency response Topology Optimization Method
CN101295969A (en) Design method of high-order limited impulse response digital filter
CN107241081B (en) Design method of sparse FIR prototype filter of cosine modulation filter bank
CN104506164A (en) Method for optimally designing graph filter banks on basis of two-step process
CN108054757A (en) A kind of embedded idle and voltage N-1 Close loop security check methods
CN104198969A (en) Gradient coil design method
CN105243241B (en) The two passage biorthogonal figure filter set designing methods based on lift structure
Esmaeilzehi et al. SRNSSI: a deep light-weight network for single image super resolution using spatial and spectral information
CN110994666B (en) Order reduction method for reducing impedance model to RLC circuit at resonance frequency
CN103675891B (en) Based on the digital core pulse Gauss manufacturing process of Bilinear transformation method
CN107565932A (en) A kind of FIR ptototype filter design methods based on linear neural network
CN104156604B (en) Filter boundary frequency band control method and device based on genetic algorithm
Chen et al. Crossover behavior in interface depinning
CN105847201A (en) Filter bank multi carrier modulation system prototype filter optimal design method
CN106340896B (en) A kind of analysis method of multi-inverter cutting-in control interchannel reciprocal effect

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant