Method and Apparatus for Determining Stability Factor of Adaptive Filter
20170117878 ยท 2017-04-27
Inventors
Cpc classification
G06F17/16
PHYSICS
International classification
Abstract
A method and an apparatus for determining a stability factor of an adaptive filter is presented. The method includes: determining, according to first input signal that are input to an adaptive filter, a reference input matrix of the first input signal; determining a stability parameter of the first input signal according to the reference input matrix; and determining a stability factor of the adaptive filter according to the stability parameter. According to the method and apparatus for determining a stability factor of an adaptive filter provided in the embodiments of the present application, the stability factor of the adaptive filter can be adaptively obtained according to a stability feature of the first input signal, and the adaptive filter can reach a balance between a convergence speed and steady state error performance.
Claims
1. A method for determining a stability factor of an adaptive filter, comprising: determining, according to a first input signal that is input to the adaptive filter, a reference input matrix of the first input signal; determining a stability parameter of the first input signal according to the reference input matrix; and determining the stability factor of the adaptive filter according to the stability parameter.
2. The method according to claim 1, wherein determining the stability factor of the adaptive filter according to the stability parameter comprises determining the stability factor of the adaptive filter according to the stability parameter and a decreasing function relation between the stability factor and the stability parameter.
3. The method according to claim 2, wherein determining the stability factor of the adaptive filter according to the stability parameter and the decreasing function relation between the stability factor and the stability parameter comprises determining, when the stability parameter is greater than or equal to a first threshold and is less than or equal to a second threshold, the stability factor according to the following function relational expression:
k.sub.=A+B, wherein k.sub. is the stability factor, wherein is the stability parameter, wherein A is a real number less than 0, and wherein B is a real number greater than 0.
4. The method according to claim 1, wherein determining the stability factor of the adaptive filter according to the stability parameter comprises: determining that the stability factor is a first constant when the stability parameter is less than or equal to a third threshold; or determining that the stability factor is a second constant when the stability parameter is greater than or equal to a fourth threshold, wherein the third threshold is less than the fourth threshold, wherein both the first constant and the second constant are numbers greater than 0, and wherein the first constant is greater than the second constant.
5. The method according to claim 1, wherein determining the stability parameter of the first input signal according to the reference input matrix comprises: transposing the reference input matrix in order to obtain a transposed matrix; multiplying the transposed matrix by the reference input matrix in order to obtain a first matrix; and determining a value of a determinant of the first matrix as the stability parameter.
6. The method according to claim 1, wherein determining the stability parameter of the first input signal according to the reference input matrix comprises: transposing the reference input matrix in order to obtain a transposed matrix; multiplying the transposed matrix by the reference input matrix in order to obtain a second matrix; and determining, as the stability parameter, a result obtained by taking a logarithm of a value of a determinant of the second matrix.
7. The method according to claim 1, further comprising: determining, according to second input signal that is input to the adaptive filter, an input vector of the second input signal; determining an output signal at a current time according to a coefficient of the adaptive filter at the current time, the input vector, and the reference input matrix; and determining a filtering coefficient of the adaptive filter according to the reference input matrix, the output signal, the stability factor, and an update step of the adaptive filter.
8. An apparatus for determining a stability factor of an adaptive filter, comprising: a memory storing executable instructions; and a processor coupled to the memory and configured to: determine, according to a first input signal that is input to the adaptive filter, a reference input matrix of the first input signal; determine a stability parameter of the first input signal according to the reference input matrix; and determine the stability factor of the adaptive filter according to the stability parameter.
9. The apparatus according to claim 8, wherein the processor is further configured to determine the stability factor of the adaptive filter according to the stability parameter and a decreasing function relation between the stability factor and the stability parameter.
10. The apparatus according to claim 9, wherein the processor is further configured to determine, when the stability parameter is greater than or equal to a first threshold and is less than or equal to a second threshold, the stability factor according to the following function relational expression:
k.sub.=A+B, wherein k.sub. is the stability factor, wherein is the stability parameter, wherein A is a real number less than 0, and wherein B is a real number greater than 0.
11. The apparatus according to claim 8, wherein the processor is further configured to: determine that the stability factor is a first constant when the stability parameter is less than or equal to a third threshold; and determine that the stability factor is a second constant when the stability parameter is greater than or equal to a fourth threshold, wherein the third threshold is less than the fourth threshold, wherein both the first constant and the second constant are numbers greater than 0, and wherein the first constant is greater than the second constant.
12. The apparatus according to claim 8, wherein the processor is further configured to: transpose the reference input matrix in order to obtain a transposed matrix; multiply the transposed matrix by the reference input matrix in order to obtain a first matrix; and determine a value of a determinant of the first matrix as the stability parameter.
13. The apparatus according to claim 8, wherein the processor is further configured to: transpose the reference input matrix, to obtain a transposed matrix; multiply the transposed matrix obtained by the reference input matrix, to obtain a second matrix; and determine, as the stability parameter, a result obtained by taking a logarithm of a value of a determinant of the second matrix.
14. The apparatus according to claim 8, wherein the processor is further configured to: determine, according to second input signal that is input to the adaptive filter, an input vector of the second input signal; determine an output signal at a current time according to a coefficient of the adaptive filter at the current time, the input vector, and the reference input matrix; and determine a filtering coefficient of the adaptive filter according to the reference input matrix, the output signal, the stability factor, and an update step of the adaptive filter.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0022] To describe the technical solutions in the embodiments of the present application more clearly, the following briefly describes the accompanying drawings required for describing the embodiments of the present application. The accompanying drawings in the following description show merely some embodiments of the present application, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
DESCRIPTION OF EMBODIMENTS
[0031] The following clearly describes the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. The described embodiments are a part rather than all of the embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0032]
[0033] Step 110: Determine, according to first input signal that is input to an adaptive filter, a reference input matrix of the first input signal.
[0034] Step 120: Determine a stability parameter of the first input signal according to the reference input matrix.
[0035] Step 130: Determine a stability factor of the adaptive filter according to the stability parameter.
[0036] In this embodiment of the present application, the apparatus for determining a stability factor of an adaptive filter may obtain a first input signal that is input to an adaptive filter at a current time and first input signal that are input to the adaptive filter at multiple historical times, to construct a reference input matrix, and determine a stability parameter of the first input signal according to the reference input matrix, the apparatus may determine a stability factor of the adaptive filter according to the stability parameter.
[0037] Therefore, according to the method for determining a stability factor of an adaptive filter provided in this embodiment of the present application, a stability factor of an adaptive filter is determined according to a stability parameter of first input signal that is determined according to a reference input matrix of the first input signal of the adaptive filter, so that the stability factor of the adaptive filter can be adaptively obtained according to a stability feature of the first input signal, and the adaptive filter can reach a balance between a convergence speed and steady state error performance.
[0038] In this embodiment of the present application, in step 110, the adaptive filter may obtain the first input signal that is input to the adaptive filter at the current time and the first input signal that are input to the adaptive filter at the multiple historical times, and may construct the reference input matrix using the first input signal according to an adaptive filtering algorithm used by the adaptive filter, where the first input signal may be input to the adaptive filter in a form of a signal vector.
[0039] It should be understood that, in this embodiment of the present application, because the adaptive filter may use different algorithms, the reference input matrix constructed according to the first input signal includes an L1 dimensional vector or an Lp dimensional matrix. That is, the reference input matrix may be a vector, or may be a matrix, which is not limited in the present application.
[0040] For example, the adaptive filter may use a NLMS algorithm, and may construct a reference input matrix x(n) according to the first input signal:
x(n)=[x(n),x(n1), . . . ,x(nL+1)].sup.T,
where x(n) is a first input signal at an n.sup.th time, and L is a length of the adaptive filter. That is, the reference input matrix may be constructed according to the first input signal at the n.sup.th time and L1 first input signal at L1 times before the n.sup.th time, and the reference input matrix is an L1 reference input vector. In other words, in the NLMS algorithm, a reference input vector x(n) may be constructed according to the first input signal at the n.sup.th time and the L1 first input signal at the L1 times before the n.sup.th time, a stability parameter of the first input signal is determined according to the reference input vector x(n), and then a stability factor of the adaptive filter at the n.sup.th time is determined according to the determined stability parameter.
[0041] For another example, the adaptive filter may use an APA algorithm, and may construct a reference input matrix X(n) according to the first input signal:
where x(n) is a first input signal at an n.sup.th time, L is a length of the adaptive filter, and p is an order of the adaptive filter and is a quantity of columns of the reference input matrix X(n).
[0042] Optionally, in an embodiment, in step 120, the reference input matrix may be transposed, to obtain a transposed matrix; the transposed matrix is multiplied by the reference input matrix, to obtain a first matrix; and a value of a determinant of the first matrix is determined as the stability parameter.
[0043] In this embodiment of the present application, a product of the reference input matrix constructed according to the first input signal and the transposed matrix of the reference input matrix may be determined as the first matrix, then the value of the determinant of the first matrix is determined as a stability parameter of the first input signal, and the stability factor of the adaptive filter is determined according to the determined stability parameter .
[0044] Alternatively, the reference input matrix may be transposed, to obtain a transposed matrix; a sum of a positive real number and a result of multiplying the transposed matrix by the reference input matrix is determined as a first matrix; and a value of a determinant of the first matrix is determined as the stability parameter of the first input signal, so that the value of the determinant may be a positive number that is not zero.
[0045] For example, when the adaptive filter uses the NLMS algorithm, the stability parameter of the first input signal may be determined according to the following equation, that is, the stability parameter is a parameter for representing an autocorrelation characteristic of the reference input vector x(n) constructed according to the first input signal:
=|x(n).sup.T.Math.x(n)|; or
the stability parameter of the first input signal may be determined according to the following equation:
=|x(n).sup.T.Math.x(n)+|,
where x(n) is a reference input vector at the n.sup.th time, x(n).sup.T is a transposed vector of the reference input vector x(n), is a real number, and a value of may range from 1 to 10.sup.5. For example, the value of may be 10.sup.5.
[0046] For another example, when the adaptive filter uses the APA algorithm, the stability parameter of the first input signal may be determined according to the following equation, that is, the stability parameter is a parameter for representing an autocorrelation characteristic of the reference input matrix X(n) constructed according to the first input signal:
=|X(n).sup.T.Math.X(n)|; or
the stability parameter of the first input signal may be determined according to the following equation:
=|X(n).sup.T.Math.X(n)+|,
where X(n) is a reference input matrix at the n.sup.th time, X(n).sup.T is a transposed matrix of the reference input matrix X(n), is a real number, and a value of may range from 1 to 10.sup.5. For example, the value of may be 10.sup.5.
[0047] Optionally, in another embodiment, in step 120, the reference input matrix may be transposed, to obtain a transposed matrix; the transposed matrix is multiplied by the reference input matrix, to obtain a second matrix; and a result obtained by taking a logarithm of a value of a determinant of the second matrix is determined as the stability parameter.
[0048] In this embodiment of the present application, a product of the reference input matrix constructed according to the first input signal and the transposed matrix of the reference input matrix may be determined as the second matrix, then the result obtained by taking the logarithm of the value of the determinant of the second matrix is determined as a stability parameter of the first input signal, and the stability factor of the adaptive filter is determined according to the determined stability parameter .
[0049] Therefore, according to the method in this embodiment of the present application, the stability parameter of the first input signal is determined in a logarithm domain, which can effectively reduce a value range of the stability parameter , making it easier to determine a value of the stability factor of the adaptive filter.
[0050] Alternatively, the reference input matrix may be transposed, to obtain a transposed matrix; a sum of a positive real number and a result of multiplying the transposed matrix by the reference input matrix is determined as a second matrix; and a result obtained by taking a logarithm of a value of a determinant of the second matrix is determined as the stability parameter of the first input signal, so that the value of the determinant may be a positive number that is not zero.
[0051] For example, when the adaptive filter uses the NLMS algorithm, the stability parameter of the first input signal may be determined according to the following equation, that is, the stability parameter is a parameter for representing an autocorrelation characteristic of the reference input vector x(n) constructed according to the first input signal:
=log|x(n).sup.T.Math.x(n)|; or
the stability parameter of the first input signal may be determined according to the following equation:
=log|x(n).sup.T.Math.x(n)+|,
where x(n) is a reference input vector at an n.sup.th time, x(n).sup.T is a transposed vector of the reference input vector x(n), is a real number, and a value of may range from 1 to 10.sup.5. For example, the value of may be 10.sup.5.
[0052] It should be understood that, in this embodiment of the present application, a base of the logarithm may be 10, that is, =lg|x(n).sup.Tx(n)|, or may be e, that is, =ln|x(n).sup.T.Math.x(n)|, or may be another constant, which is not limited in this embodiment of the present application.
[0053] For another example, when the adaptive filter uses the APA algorithm, the stability parameter of the first input signal may be determined according to the following equation, that is, the stability parameter is a parameter for representing an autocorrelation characteristic of the reference input matrix X(n) constructed according to the first input signal:
=log|X(n).sup.T.Math.X(n)|; or
the stability parameter of the first input signal may be determined according to the following equation:
=log|X(n).sup.T.Math.X(n)+|,
where X(n) is a reference input matrix at the n.sup.th time, X(n).sup.T is a transposed matrix of the reference input matrix X(n), is a real number, and a value of may range from 1 to 10.sup.5. For example, the value of may be 10.sup.5.
[0054] It should be understood that, in this embodiment of the present application, a base of the logarithm may be 10, that is, =lg|X(n).sup.T|X(n)|, or may be e, that is, =ln|X(n).sup.T.Math.X(n)|, or may be another constant, which is not limited in this embodiment of the present application.
[0055] Optionally, in another embodiment, in 130, the stability factor may be determined according to a decreasing function relation between the stability factor and the stability parameter. In other words, a value of the stability factor decreases when a value of the stability parameter increases.
[0056] Alternatively, the stability factor of the adaptive filter may be determined according to an inverse relationship between the stability factor and the stability parameter. That is, when a value of the stability parameter is large, a value of the stability factor is small. When a value of the stability parameter is small, a value of the stability factor is large. When the value of the stability parameter is large, the first input signal has a high correlation and relatively good stability, and a relatively small stability factor may be selected to improve a convergence speed. When the value of the stability parameter is small, the first input signal have relatively low correlation and relatively poor stability, and a relatively large stability factor may be selected, to avoid a problem that the adaptive filter diverges because an update rate of a coefficient of the adaptive filter is excessively fast.
[0057] It should be understood that, in this embodiment of the present application, it may be determined that the stability factor is a linear decreasing function of the stability parameter, or may be determined that the stability factor is a function of an inverse relationship of the stability parameter. For example, k.sub.=B.Math.A.sup.C, where k.sub. is the stability factor, is the stability parameter, k.sub. and are both positive numbers, and A, B, and C are all constants, but this embodiment of the present application is not limited thereto, and a decreasing function relational expression in another form may be used.
[0058] Optionally, in another embodiment, in step 130, when the stability parameter is greater than or equal to a first threshold and is less than or equal to a second threshold, the stability factor k.sub. may be determined according to the following function relational expression:
k.sub.=A+B,
where is the stability parameter, A is a real number less than 0, and B is a real number greater than 0.
[0059] In this embodiment of the present application, when the stability parameter is greater than or equal to a first threshold 1 and is less than or equal to a second threshold 2, it may be determined that the stability factor k.sub. is a linear decreasing function of the stability parameter . Because the stability factor k.sub. is the linear decreasing function of the stability parameter , an algorithm for determining the stability factor k.sub. is easier and is easily implemented.
[0060] It should be understood that, in this embodiment of the present application, the first threshold and the second threshold may be determined according to an empirical value, the first threshold 1 may range from 0 to 10 or from 1 to 10.sup.10, and the second threshold 2 may range from 0 to 10 or from 1 to 10.sup.10.
[0061] Optionally, in another embodiment, in 130, when the stability parameter is less than or equal to a third threshold, it is determined that the stability factor is a first constant, or when the stability parameter is greater than or equal to a fourth threshold, it is determined that the stability factor is a second constant, where the third threshold is less than the fourth threshold, both the first constant and the second constant are numbers greater than 0, and the first constant is greater than the second constant.
[0062] In this embodiment of the present application, the adaptive filter receives the first input signal. When the stability parameter of the first input signal is less than or equal to a third threshold 3, it may be determined that the stability factor is C1, or when the stability parameter of the first input signal is greater than or equal to a fourth threshold 4, it is determined that the stability factor is C2, where C1 and C2 are both numbers greater than 0, and C1 is greater than C2. When the stability parameter of the first input signal is greater than the third threshold 3 and is less than the fourth threshold 4, the stability factor k.sub. may be determined according to the following linear relational expression, and the stability factor k.sub. is a linear decreasing function of the stability parameter :
k.sub.=A+B,
where A is a real number less than 0, a value of A is a ratio of a difference between C2 and C1 to a difference between the fourth threshold 4 and the third threshold 3, that is,
B is a real number greater than 0, and a value of B is a difference between the fourth threshold 4 and a product of the third threshold 3 and A, that is, B=4A.Math.3.
[0063] It should be understood that, in this embodiment of the present application, C1 and C2 may be determined according to an empirical value, C1 may range from 10.sup.5 to 10.sup.10, and C2 may range from 10.sup.5 to 10.sup.10. The third threshold and the fourth threshold may also be determined according to an empirical value, the third threshold 3 may range from 0 to 10 or from 1 to 10.sup.10, and the fourth threshold 4 may range from 0 to 10 or from 1 to 10.sup.10.
[0064] Optionally, in another embodiment, as shown in
[0065] Step 140: Determine, according to second input signal that are input to the adaptive filter, an input vector of the second input signal.
[0066] Step 150: Determine an output signal at a current time according to the input vector and the reference input matrix.
[0067] Step 160: Determine a filtering coefficient of the adaptive filter according to the reference input matrix, the output signal, the stability factor, and an update step of the adaptive filter.
[0068] In this embodiment of the present application, the apparatus for determining a stability factor of an adaptive filter may further obtain a second input signal that is input to the adaptive filter at the current time and second input signal that are input to the adaptive filter at the multiple historical times to construct an input vector, and determine an output signal at the current time according to the input vector, and then the apparatus may determine a coefficient of the adaptive filter according to the reference input matrix, the output signal, the stability factor, and an update step of the adaptive filter.
[0069] Therefore, according to the method for determining a stability factor of an adaptive filter provided in this embodiment of the present application, a stability factor of an adaptive filter is determined according to a stability parameter of first input signal that is determined according to a reference input matrix of the first input signal of the adaptive filter, so that the stability factor of the adaptive filter can be adaptively obtained according to a stability feature of the first input signal, and the adaptive filter can reach a balance between a convergence speed and steady state error performance.
[0070] It should be understood that, in this embodiment of the present application, a new filtering coefficient may be determined for the adaptive filter according to the stability factor determined at the current time, or the filtering coefficient of the adaptive filter at the current time may be updated according to the stability factor determined at the current time, and this embodiment of the present application is not limited thereto.
[0071] For example, the adaptive filter may use the NLMS algorithm, and an output signal e(n) at the n.sup.th time may be determined according to the following equation:
e(n)=d(n)x(n).sup.Th(n),
where d(n) is an input vector constructed according to the second input signal, x(n).sup.T is a transposed vector of a reference input vector x(n) at the n.sup.th time, and h(n) is a coefficient of the adaptive filter at the n.sup.th time, and
h(n)=[h.sub.n(0), . . . ,h.sub.n(L1)].sup.T,
where L is the length of the adaptive filter.
[0072] A coefficient h(n+1) of the adaptive filter at an (n+1).sup.th time is determined according to the reference input vector x(n), the output signal e(n), the stability factor k.sub., and an update step of the adaptive filter, and the filtering coefficient h(n+1) of the adaptive filter may be determined according to the following equation:
or the coefficient h(n) of the adaptive filter at the n.sup.th time may be updated according to the reference input vector x(n), the output signal e(n), the stability factor k.sub., and an update step of the adaptive filter, and an updated filtering coefficient h(n+1) of the adaptive filter may be determined according to the equation above, where h(n) is the coefficient of the adaptive filter at the n.sup.th time, h(n+1) is the coefficient of the adaptive filter at the (n+1).sup.th time, is the update step of the adaptive filter, k.sub. is the stability factor of the adaptive filter, x(n).sup.2 is a square of 2-norm of the reference input vector x(n) at the n.sup.th time, and e(n) is the output signal.
[0073] For another example, the adaptive filter may use the APA algorithm, and an output signal e(n) at the n.sup.th time may be determined according to the following equations:
e(n)=[e(n),e(n1), . . . ,e(np+1)].sup.T, and e(n)=d(n)X(n).sup.Th(n),
where X(n).sup.T is a transposed matrix of the reference input matrix X(n) at the n.sup.th time, d(n) is an input vector constructed according to the second input signal, and h(n) is a coefficient of the adaptive filter at the n.sup.th time, and
h(n)=[h.sub.n(0), . . . ,h.sub.n(L1)].sup.T,
where L is the length of the adaptive filter.
[0074] A coefficient h(n+1) of the adaptive filter at an (n+1).sup.th time is determined according to the reference input matrix X(n), the output signal e(n), the stability factor k.sub., and an update step of the adaptive filter, and the filtering coefficient h(n+1) of the adaptive filter may be determined according to the following equation:
h(n+1)=h(n)+X(n)[X(n).sup.TX(n)+k.sub.I].sup.1.Math.e(n); or
the coefficient h(n) of the adaptive filter at the n.sup.th time may be updated according to the reference input matrix X(n), the output signal e(n), the stability factor k.sub., and an update step of the adaptive filter, and an updated filtering coefficient h(n+1) of the adaptive filter may be determined according to the equation above, where h(n) is the coefficient of the adaptive filter at the n.sup.th time, h(n+1) is the coefficient of the adaptive filter at the (n+1).sup.th time, is the update step of the adaptive filter, k.sub. is the stability factor of the adaptive filter, X(n) is the reference input matrix at the n.sup.th time, e(n) is the output signal, I is an identity matrix, and [ ].sup.1 indicates that an inverse operation is performed on the matrix.
[0075] The technical solution of the method for determining a stability factor of an adaptive filter according to this embodiment of the present application is described below in further detail with reference to
[0076]
[0077] Step 310: Determine, according to first input signal that are input to an adaptive filter, a reference input matrix of the first input signal.
[0078] Before the reference input matrix of the first input signal is determined according to the first input signal that are input to the adaptive filter, a K.sup.th frame of first input signal R that is input to the adaptive filter is obtained. The K.sup.th frame of first input signal R may be expressed as:
R=[R((k1)*L.sub.f), . . . ,R((k1)*L.sub.f+L.sub.f1)],
where L.sub.f represents a frame length of each frame of first input signal, for example, L.sub.f=320, but this embodiment of the present application is not limited thereto, and L.sub.f may be another positive integer. It should be noted that, in the K.sup.th frame of first input signal R, L.sub.f is a quantity of samples of first input signal included in the K.sup.th frame of first input signal R, that is, the first input signal R is a vector of L.sub.f1.
[0079] An affine projection order in the APA algorithm is p, and the K.sup.th frame of first input signal R may be divided into L.sub.f/p subframes. For example, p=8, and the K.sup.th frame of first input signal R may include 40 subframes of first input signal, but this embodiment of the present application is not limited thereto, and a suitable positive integer may be selected as the affine projection order p according to a design requirement of the APA algorithm.
[0080] In this embodiment of the present application, an m.sup.th subframe of first input signal R.sub.m in the K.sup.th frame of first input signal R may be used as the first input signal at an n.sup.th time. The m.sup.th subframe of first input signal R.sub.m may be expressed as:
R.sub.m=R((k1)*L.sub.f+(m1)*p), . . . ,R((k1)*L.sub.f+m*p1).
[0081] A reference input matrix X(n) of first input signal may be constructed according to the m.sup.th subframe of first input signal R.sub.m in the K.sup.th frame of first input signal R and first input signal that are input to the adaptive filter at multiple historical times:
where n=(k1)*L.sub.f+(m1)*p, L is a length of the adaptive filter, and p is an order of the adaptive filter and is a quantity of columns of the reference input matrix X(n). For example, the order of the adaptive filter may be set to 8, the length of the adaptive filter may be set to 200, and a reference input matrix constructed according to a first subframe of first input signal in a first frame of first input signal and the first input signal that are input to the adaptive filter at the historical times is expressed as:
[0082] Step 320: Determine a stability parameter of the first input signal according to the reference input matrix determined in step 310.
[0083] The reference input matrix may be transposed, to obtain a transposed matrix; the transposed matrix is multiplied by the reference input matrix, to obtain a first matrix; and a determinant of the first matrix is determined as a stability parameter . For example, the stability parameter of the first input signal may be determined according to the following equation, that is, the stability parameter is a parameter for representing an autocorrelation characteristic of the reference input matrix X(n) constructed according to the first input signal:
=|X(n).sup.T.Math.X(n)|,
X(n) is a reference input matrix at an n.sup.th time, and X(n).sup.T is a transposed matrix of the reference input matrix X(n).
[0084] Alternatively, the reference input matrix may be transposed, to obtain a transposed matrix; a sum of a positive real number and a result of multiplying the transposed matrix by the reference input matrix is determined as a first matrix; and a value of a determinant of the first matrix is determined as the stability parameter of the first input signal, so that the value of the determinant may be a positive number that is not zero. For example, the stability parameter of the first input signal may be determined according to the following equation:
=|X(n).sup.T.Math.X(n)+|,
where is a real number, and a value of may range from 1 to 10.sup.5. For example, the value of may be 10.sup.5.
[0085] Alternatively, the reference input matrix may be transposed, to obtain a transposed matrix; the transposed matrix is multiplied by the reference input matrix, to obtain a second matrix; and a result obtained by taking a logarithm of a determinant of the second matrix is determined as a stability parameter . For example, the stability parameter of the first input signal may be determined according to the following equation, that is, the stability parameter is a parameter for representing an autocorrelation characteristic of the reference input matrix X(n) constructed according to the first input signal:
=log|X(n).sup.T.Math.X(n)|,
X(n) is a reference input matrix at an n.sup.th time, and X(n).sup.T is a transposed matrix of the reference input matrix X(n).
[0086] It should be understood that, in this embodiment of the present application, a base of the logarithm may be 10, that is, =lg|X(n).sup.T.Math.X(n)|, or may be e, that is, =ln|X(n).sup.T.Math.X(n)|, or may be another constant, which is not limited in this embodiment of the present application.
[0087] Alternatively, the reference input matrix may be transposed, to obtain a transposed matrix; a sum of a positive real number and a result of multiplying the transposed matrix by the reference input matrix is determined as a second matrix; and a result obtained by taking a logarithm of a value of a determinant of the second matrix is determined as the stability parameter of the first input signal, so that the value of the determinant may be a positive number that is not zero. For example, the stability parameter of the first input signal may be determined according to the following equation:
=log|X(n).sup.T.Math.X(n)+|,
where is a real number, and a value of may range from 1 to 10.sup.5. For example, the value of may be 10.sup.5.
[0088] Step 330: Determine a stability factor of the adaptive filter according to the stability parameter determined in step 320.
[0089] When the stability parameter is less than or equal to a third threshold 3, it is determined that the stability factor is a first constant C1, or when the stability parameter is greater than or equal to a fourth threshold 4, it is determined that the stability factor is a second constant C2, where 3 is less than 4, C1 and C2 are both numbers greater than 0, and C1 is greater than C2. When the stability parameter is greater than the third threshold 3 and is less than the fourth threshold 4, the stability factor may be determined according to the stability parameter and a decreasing function relation between the stability factor and the stability parameter. For example, the stability factor k.sub. may be determined according to the following function relational expression:
k.sub.=A+B,
where is the stability parameter, A is a real number less than 0, and B is a real number greater than 0.
[0090] It should be understood that, in this embodiment of the present application, when the stability parameter of the first input signal is greater than the third threshold and is less than the fourth threshold, it may also be determined that the stability factor is a function of an inverse relationship of the stability parameter. For example, k.sub.=B.Math.A.sup.C, where k.sub. is the stability factor, is the stability parameter, and A, B, and C are all constants, but this embodiment of the present application is not limited thereto.
[0091] To sum up, in this embodiment of the present application, the stability factor k.sub. may be determined according to the following equation:
where 3 represents the third threshold, 4 represents the fourth threshold, 3<4,
and B=4A.Math.3.
[0092] It should be understood that, in this embodiment of the present application, C1 and C2 may be determined according to an empirical value, C1 may range from 10.sup.5 to 10.sup.10, and C2 may range from 10.sup.5 to 10.sup.10. For example, a value of C1 may be 10.sup.6, and a value of C2 may be 510.sup.7.
[0093] It should be further understood that, in this embodiment of the present application, the third threshold and the fourth threshold may be determined according to an empirical value. When =|X(n).sup.T.Math.X(n)| or =|X(n).sup.T.Math.X(n)+|, the third threshold 3 may range from 0 to 10.sup.10, the fourth threshold 4 may range from 0 to 10.sup.10, and 3<4. When =log|X(n).sup.T.Math.X(n)| or =log|X(n).sup.T.Math.X(n)+|, the third threshold 3 may range from 1 to 10, the fourth threshold 4 may range from 1 to 10, and 3<4. For example, a value of 3 may be 1.5, a value of 4 may be 2.5, and the value of may be 10.sup.5.
[0094] Step 340: Determine, according to second input signal that is input to the adaptive filter, an input vector of the second input signal.
[0095] Before the input vector of the second input signal is determined according to the second input signal that are input to the adaptive filter, a K.sup.th frame of second input signal S that is input to the adaptive filter is obtained. The K.sup.th frame of second input signal S may be expressed as:
S=[S((k1)*L.sub.f), . . . ,S((k1)*L.sub.f+L.sub.f1)],
where L.sub.f represents a frame length of each frame of second input signal, for example, L.sub.f=320, but this embodiment of the present application is not limited thereto, and L.sub.f may be another positive integer. It should be noted that, in the K.sup.th frame of second input signal S, L.sub.f is a quantity of samples of second input signal included in the K.sup.th frame of second input signal S, that is, the second input signal S is a vector of L.sub.f1.
[0096] The affine projection order in the APA algorithm is p, and the K.sup.th frame of second input signal S may be divided into L.sub.f/p subframes. For example, p=8, and the K.sup.th frame of second input signal S may include 40 subframes of second input signal, but this embodiment of the present application is not limited thereto, and a suitable positive integer may be selected as the affine projection order p according to a design requirement of the APA algorithm.
[0097] In this embodiment of the present application, an m.sup.th subframe of second input signal S.sub.m in the K.sup.th frame of second input signal S may be used as a second input signal at the n.sup.th time. The m.sup.th subframe of second input signal 5, may be expressed as:
S.sub.m=[S((k1)*L.sub.f+(m1)*p), . . . ,S((k1)*L.sub.f+m*p1)].
[0098] An input vector d(n) may be constructed according to the m.sup.th subframe of second input signal S.sub.m in the K.sup.th frame of second input signal S:
d(n)=[S(n), . . . ,S(np+1)].sup.T,
where n=(k1)*L.sub.f+(m1)*p, p is the order of the adaptive filter and is a quantity of rows of the input vector d(n). For example, the order of the adaptive filter may be set to 8, the length of the adaptive filter may be set to 200, and an input vector constructed according to a first subframe of second input signal in a first frame of second input signal and second input signal that are input to the adaptive filter at historical times may be expressed as:
d(0)=[S(0)S(1), . . . S(7)].sup.T.
[0099] Step 350: Determine an output signal at a current time according to the reference input matrix determined in step 310, the input vector determined in step 340, and a coefficient of the adaptive filter at the current time.
[0100] An output signal e(n) at the n.sup.th time may be determined according to the reference input matrix X(n), the input vector d(n), and the coefficient of the adaptive filter at the current time. For example, the output signal e(n) may be determined according to the following equations:
e(n)=[e(n),e(n1), . . . ,e(np+1)].sup.T, and
e(n)=d(n)X(n).sup.Th(n),
where X(n).sup.T is a transposed matrix of the reference input matrix X(n) at the n.sup.th time, d(n) is the input vector at the n.sup.th time, and h(n) is a coefficient of the adaptive filter at the n.sup.th time, and
h(n)=[h.sub.n(0), . . . ,h.sub.n(L1)].sup.T,
where L is the length of the adaptive filter.
[0101] Step 360: Determine a filtering coefficient of the adaptive filter according to the reference input matrix determined in step 310, the stability factor determined in step 330, the output signal determined in step 350, and an update step of the adaptive filter.
[0102] A coefficient h(n+1) of the adaptive filter at an (n+1).sup.th time may be determined according to the output signal e(n), the stability factor k.sub., and the update step of the adaptive filter, and the filtering coefficient h(n+1) of the adaptive filter may be determined according to the following equation:
h(n+1)=h(n)+X(n)[X(n).sup.TX(n)+k.sub.I].sup..Math.e(n),
where h(n) is the coefficient of the adaptive filter at the n.sup.th time, h(n+1) is the coefficient of the adaptive filter at the (n+1).sup.th time, is the update step of the adaptive filter, k.sub. is the stability factor of the adaptive filter, X(n) is the reference input matrix at the n.sup.th time, e(n) is an output signal vector, I is an identity matrix, and [ ].sup.1 indicates that an inverse operation is performed on the matrix.
[0103] Therefore, according to the method for determining a stability factor of an adaptive filter provided in this embodiment of the present application, a stability factor of an adaptive filter is determined according to a stability parameter of first input signal that is determined according to a reference input matrix of the first input signal of the adaptive filter, so that the stability factor of the adaptive filter can be adaptively obtained according to a stability feature of the first input signal, and the adaptive filter can reach a balance between a convergence speed and steady state error performance.
[0104] It should be understood that, in this embodiment of the present application, the first input signal may be a signal that is transmitted from a remote end and that is played by a speaker, and the second input signal may be a signal actually collected by a near-end microphone, but this embodiment of the present application is not limited thereto. For example, when the adaptive filter uses the APA algorithm and is applied to another scenario, the first input signal may be a reference signal, and the second input signal may be an expected signal.
[0105]
[0106] Step 410: Determine, according to first input signal that is input to an adaptive filter, a reference input vector of the first input signal.
[0107] Before the reference input vector of the first input signal is determined according to the first input signal that is input to the adaptive filter, a K.sup.th frame of first input signal R that is input to the adaptive filter is obtained. The K.sup.th frame of first input signal R may be expressed as:
R=[R((k1)*L.sub.f), . . . ,R((k1)*L.sub.f+L.sub.f1)],
where L.sub.f represents a frame length of each frame of first input signal, for example, L.sub.f=320, but this embodiment of the present application is not limited thereto, and L.sub.f may be another positive integer. It should be noted that, in the K.sup.th frame of first input signal R, L.sub.f is a quantity of samples of first input signal included in the K.sup.th frame of first input signal R, that is, the first input signal R is a first input signal vector of L.sub.f1.
[0108] A frame length of the K.sup.th frame of first input signal R may be L.sub.f=320, and the K.sup.th frame of first input signal R includes 320 sampling points. In this embodiment of the present application, a first input signal vector R.sub.m corresponding to an m.sup.th sampling point of the K.sup.th frame of first input signal R may be used as a first input signal at an n.sup.th time. The first input signal vector R.sub.m of the m.sup.th sampling point may be expressed as:
R.sub.m=[R((k1)*L.sub.f+m, . . . ,R((k1)*L.sub.f+m+L.sub.f1)].
[0109] A reference input matrix x(n) of first input signal may be constructed according to the first input signal R.sub.m corresponding to the m.sup.th sampling point of the K.sup.th frame of first input signal R and first input signal that are input to the adaptive filter at multiple historical times:
x(n)=[x(n),x(n1), . . . ,x(nL+1)].sup.T,
where n=(k1)*L.sub.f+m, an.sub.d L is a length of the adaptive filter. For example, the length of the adaptive filter may be set to 200, and a reference input vector constructed according to a first input signal corresponding to a first sampling point of a first frame of first input signal and the first input signal that are input to the adaptive filter at the historical times may be expressed as:
x(0)=[x(0),x(1), . . . ,x(199)].sup.T.
[0110] Step 420: Determine a stability parameter of the first input signal according to the reference input vector determined in step 410.
[0111] The reference input vector may be transposed, to obtain a transposed vector; the transposed vector is multiplied by the reference input vector, to obtain a first matrix; and a determinant of the first matrix is determined as a stability parameter of the first input signal at the n.sup.th time. For example, the stability parameter of the first input signal at the n.sup.th time may be determined according to the following equation, that is, the stability parameter is a parameter for representing an autocorrelation characteristic of a reference input vector x(n) constructed according to the first input signal:
=|x(n).sup.T.Math.x(n)|,
where x(n) is a reference input vector at the n.sup.th time, and x(n).sup.T is a transposed vector of the reference input vector x(n).
[0112] Alternatively, the reference input vector may be transposed, to obtain a transposed vector; a sum of a positive real number and a result of multiplying the transposed vector by the reference input vector is determined as a first matrix; and a value of a determinant of the first matrix is determined as the stability parameter of the first input signal, so that the value of the determinant may be a positive number that is not zero. For example, the stability parameter of the first input signal may be determined according to the following equation:
=|x(n).sup.T.Math.x(n)+|,
where is a real number, and a value of 6 may range from 1 to 10.sup.5. For example, the value of may be 10.sup.5.
[0113] Alternatively, the reference input vector may be transposed, to obtain a transposed vector, a product of the transposed vector and the reference input vector is determined as a second matrix, and a result obtained by taking a logarithm of a determinant of the second matrix is determined as a stability parameter of the first input signal. For example, the stability parameter of the first input signal may be determined according to the following equation, that is, the stability parameter is an autocorrelation parameter of the first input signal at the n.sup.th time:
=log|x(n).sup.T.Math.x(n)|,
where x(n) is a reference input vector at the n.sup.th time, and x(n).sup.T is a transposed vector of the reference input vector x(n).
[0114] It should be understood that, in this embodiment of the present application, a base of the logarithm may be 10, that is, =lg|x(n).sup.T.Math.x(n)|, or may be e, that is, =ln|x(n).sup.T.Math.x(n)|, or may be another constant, which is not limited in this embodiment of the present application.
[0115] Alternatively, the reference input vector may be transposed, to obtain a transposed vector; a sum of a positive real number and a result of multiplying the transposed vector by the reference input vector is determined as a second matrix; and a result obtained by taking a logarithm of a value of a determinant of the second matrix is determined as the stability parameter of the first input signal, so that the value of the determinant may be a positive number that is not zero. For example, the stability parameter of the first input signal may be determined according to the following equation:
=log|x(n).sup.T.Math.x(n)+|,
where is a real number, and a value of 6 may range from 1 to 10.sup.5. For example, the value of 6 may be 10.sup.5.
[0116] Step 430: Determine a stability factor of the adaptive filter according to the stability parameter determined in step 420.
[0117] When the stability parameter is less than or equal to a third threshold 3, it is determined that the stability factor is a first constant C1, or when the stability parameter is greater than or equal to a fourth threshold 4, it is determined that the stability factor is a second constant C2, where 3 is less than 4, C1 and C2 are both numbers greater than 0, and C1 is greater than C2. When the stability parameter is greater than the third threshold 3 and is less than the fourth threshold 4, the stability factor may be determined according to the stability parameter and a decreasing function relation between the stability factor and the stability parameter. For example, the stability factor k.sub.8 may be determined according to the following decreasing function relational expression:
k.sub.=A+B,
where is the stability parameter, A is a real number less than 0, and B is a real number greater than 0.
[0118] It should be understood that, in this embodiment of the present application, when the stability parameter of the first input signal is greater than the third threshold and is less than the fourth threshold, it may also be determined that the stability factor is a function of an inverse relationship of the stability parameter. For example, k.sub.=B.Math.A.sup.C, where k.sub. is the stability factor, is the stability parameter, and A, B, and C are all constants, but this embodiment of the present application is not limited thereto.
[0119] To sum up, in this embodiment of the present application, the stability factor k.sub. may be determined according to the following equation:
where 3 represents the third threshold, 4 represents the fourth threshold, 3<4,
and B=4A.Math.3.
[0120] It should be understood that, in this embodiment of the present application, C1 and C2 may be determined according to an empirical value, C1 may range from 10.sup.5 to 10.sup.10, and C2 may range from 10.sup.5 to 10.sup.10. For example, a value of C1 may be 10.sup.6, and a value of C2 may be 510.sup.7.
[0121] It should be further understood that, in this embodiment of the present application, the third threshold and the fourth threshold may be determined according to an empirical value. When =|X(n).sup.T.Math.X(n)| or =|X(n).sup.T.Math.X(n)+|, the third threshold 3 may range from 0 to 10.sup.10, the fourth threshold 4 may range from 0 to 10.sup.10, and 3<4. When =log|X(n).sup.T.Math.X(n)| or =log|X(n).sup.T.Math.X(n)+|, the third threshold 3 may range from 1 to 10, the fourth threshold 4 may range from 1 to 10, and 3<4. For example, a value of 3 may be 1.5, a value of 4 may be 2.5, and the value of may be 10.sup.5.
[0122] Step 440: Determine, according to second input signal that are input to the adaptive filter, an input vector of the second input signal.
[0123] Before the input vector of the second input signal is obtained according to the second input signal that are input to the adaptive filter, a K.sup.th frame of second input signal S that is input to the adaptive filter is obtained. The K.sup.th frame of second input signal S may be expressed as:
S=[S((k1)*L.sub.f), . . . ,S((k1)*L.sub.f+L.sub.f1)],
where L.sub.f represents a frame length of each frame of second input signal, for example, L.sub.f=320, but this embodiment of the present application is not limited thereto, and L.sub.f may be another positive integer. It should be noted that, in the K.sup.th frame of second input signal S, L.sub.f is a quantity of samples of second input signal included in the K.sup.th frame of second input signal, that is, the second input signal S is a second input signal vector of L.sub.f1.
[0124] A frame length of the K.sup.th frame of second input signal S may be L.sub.f=320, and the K.sup.th frame of second input signal S includes 320 sampling points. In this embodiment of the present application, a second input signal vector S.sub.m corresponding to an m.sup.th sampling point of the K.sup.th frame of second input signal S may be used as the second input signal at the n.sup.th time. The second input signal vector S.sub.m corresponding to the m.sup.th sampling point may be expressed as:
S.sub.m=[S((k1)*L.sub.f+m, . . . ,S((k1)*L.sub.f+m+L.sub.f1)].
[0125] An input vector d(n) may be constructed according to the second input signal S.sub.m corresponding to the m.sup.th sampling point of the K.sup.th frame of second input signal 5:
d(n)=[S(n)].sup.T,
where n=(k1)*L.sub.f+m.
[0126] Step 450: Determine an output signal at a current time according to the reference input vector determined in step 410, the input vector determined in step 440, and a coefficient of the adaptive filter at the current time.
[0127] An output signal e(n) at the n.sup.th time may be determined according to the reference input vector x(n), the input vector d(n), and the coefficient of the adaptive filter at the current time. For example, the output signal e(n) may be determined according to the following equation:
e(n)=d(n)x(n).sup.Th(n),
where X(n).sup.T is the transposed matrix of the reference input matrix x(n) at the n.sup.th time, d(n) is the input vector at the n.sup.th time, and h(n) is a coefficient of the adaptive filter at the n.sup.th time, and
h(n)=[h.sub.n(0), . . . ,h.sub.n(L1)].sup.T,
where L is the length of the adaptive filter.
[0128] Step 460: Determine a coefficient of the adaptive filter according to the reference input matrix determined in step 410, the stability factor determined in step 430, the output signal determined in 450, and an update step of the adaptive filter.
[0129] A coefficient h(n+1) of the adaptive filter at an (n+1).sup.th time may be determined according to the output signal e(n), the stability factor k.sub., and the update step of the adaptive filter, and the filtering coefficient h(n+1) of the adaptive filter may be determined according to the following equation:
where h(n) is the coefficient of the adaptive filter at the n.sup.th time, h(n+1) is the coefficient of the adaptive filter at the (n+1).sup.th time, is the update step of the adaptive filter, k.sub. is the stability factor of the adaptive filter, x(n).sup.2 is a square of 2-norm of the reference input vector x(n) at the n.sup.th time, and e(n) is the output signal.
[0130] Therefore, according to the method for determining a stability factor of an adaptive filter provided in this embodiment of the present application, a stability factor of an adaptive filter is determined according to a stability parameter of first input signal that is determined according to a reference input matrix of the first input signal of the adaptive filter, so that the stability factor of the adaptive filter can be adaptively obtained according to a stability feature of the first input signal, and the adaptive filter can reach a balance between a convergence speed and steady state error performance.
[0131] It should be understood that, in this embodiment of the present application, the first input signal may be a signal that is transmitted from a remote end and that is played by a speaker, and the second input signal may be a signal actually collected by a near-end microphone, but this embodiment of the present application is not limited thereto. For example, when the adaptive filter uses the NLMS algorithm and is applied to another scenario, the first input signal may be a reference signal, and the second input signal may be an expected signal.
[0132] A method for determining a stability factor of an adaptive filter according to embodiments of the present application is described in detail above with reference to
[0133]
[0134] Therefore, according to the apparatus for determining a stability factor of an adaptive filter provided in this embodiment of the present application, a stability factor of an adaptive filter is determined according to a stability parameter of first input signal that is determined according to a reference input matrix of the first input signal that are input to the adaptive filter, so that the stability factor of the adaptive filter can be adaptively obtained according to a stability feature of the first input signal, and the adaptive filter can reach a balance between a convergence speed and steady state error performance.
[0135] Optionally, in an embodiment, the third determining module 530 is configured to determine the stability factor according to the stability parameter and a decreasing function relation between the stability factor and the stability parameter. In other words, a value of the stability factor decreases when a value of the stability parameter increases.
[0136] It should be understood that, in this embodiment of the present application, it may be determined that the stability factor is a linear decreasing function of the stability parameter, or may be determined that the stability factor is a function of an inverse relationship of the stability parameter. For example, k.sub.=B.Math.A.sup.C, where k.sub. is the stability factor, is the stability parameter, k.sub. and are both positive numbers, and A, B, and C are all constants, but this embodiment of the present application is not limited thereto, and a decreasing function relational expression in another form may be used.
[0137] Optionally, in another embodiment, the third determining module 530 includes a first determining unit 531 configured to, when the stability parameter determined by the second determining module 520 is greater than or equal to a first threshold and is less than or equal to second threshold, determine the stability factor according to the following function relational expression:
k.sub.=A+B
where k.sub. is the stability factor, is the stability parameter, A is a real number less than 0, and B is a real number greater than 0.
[0138] In this embodiment of the present application, when the stability parameter of the first input signal is greater than or equal to a first threshold 1 and is less than or equal to a second threshold 2, it may be determined that the stability factor k.sub. is a linear decreasing function of the stability parameter . Because the stability factor k.sub. is the linear decreasing function of the stability parameter , an algorithm for determining the stability factor k.sub. is easier and is easily implemented.
[0139] It should be understood that, in this embodiment of the present application, the first threshold and the second threshold may be determined according to an empirical value, the first threshold 1 may range from 0 to 10 or from 1 to 10.sup.10, and the second threshold 2 may range from 0 to 10 or from 1 to 10.sup.10.
[0140] Optionally, in another embodiment, as shown in
[0141] Optionally, in another embodiment, the second determining module includes a first determining unit configured to transpose the reference input matrix, to obtain a transposed matrix; a multiplication unit configured to multiply the transposed matrix obtained by the first determining unit by the reference input matrix, to obtain a first matrix; and a second determining unit configured to determine a value of a determinant of the first matrix obtained by the multiplication unit as the stability parameter.
[0142] Alternatively, the first determining unit may be configured to determine a sum of a positive real number and a product of the transposed matrix of the reference input matrix and the reference input matrix as a first matrix; and the second determining unit is configured to determine a value of a determinant of the first matrix determined by the first determining unit as the stability parameter of the first input signal at a current time, so that the value of the determinant may be a positive number that is not zero.
[0143] Optionally, in another embodiment, the second determining module includes a first determining unit configured to transpose the reference input matrix, to obtain a transposed matrix; a multiplication unit configured to multiply the transposed matrix obtained by the first determining unit by the reference input matrix, to obtain a second matrix; and a third determining unit configured to determine, as the stability parameter, a result obtained by taking a logarithm of a value of a determinant of the second matrix determined by the multiplication unit.
[0144] In this embodiment of the present application, the stability parameter of the first input signal is determined in a logarithm domain, which can effectively reduce a value range of the stability parameter , making it easier to determine the value of the stability factor.
[0145] Alternatively, the first determining unit may be configured to determine a sum of a positive real number and a product of the transposed matrix of the reference input matrix and the reference input matrix as a second matrix; and the third determining unit is configured to determine, as the stability parameter of the first input signal, a result obtained by taking a logarithm of a value of a determinant of the second matrix determined by the first determining unit, so that the value of the determinant may be a positive number that is not zero.
[0146] Optionally, in another embodiment, as shown in
[0147] In should be understood that, in this embodiment of the present application, the apparatus 500 according to this embodiment of the present application may correspond to an entity for executing methods in the embodiments of the present application, and the foregoing and other operations and/or functions of modules in the apparatus 500 are separately used to implement corresponding procedures of the methods in
[0148] Therefore, according to the apparatus for determining a stability factor of an adaptive filter provided in this embodiment of the present application, a stability factor of an adaptive filter is determined according to a stability parameter of first input signal that is determined according to a reference input matrix of the first input signal of the adaptive filter, so that the stability factor of the adaptive filter can be adaptively obtained according to a stability feature of the first input signal, and the adaptive filter can reach a balance between a convergence speed and steady state error performance.
[0149]
[0150] The receiver 630 is configured to receive first input signal.
[0151] The processor 610 is configured to determine, according to the first input signal that are input to an adaptive filter, a reference input matrix of the first input signal; determine a stability parameter of the first input signal according to the reference input matrix; and determine a stability factor of the adaptive filter according to the stability parameter.
[0152] Therefore, according to the apparatus for determining a stability factor of an adaptive filter provided in this embodiment of the present application, a stability factor of an adaptive filter is determined according to a stability parameter of first input signal that is determined according to a reference input matrix of the first input signal of the adaptive filter, so that the stability factor of the adaptive filter can be adaptively obtained according to a stability feature of the first input signal, and the adaptive filter can reach a balance between a convergence speed and steady state error performance.
[0153] It should be understood that in this embodiment of the present application, the processor 610 may be a central processing unit (CPU), or the processor 610 may be another general purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), or field-programmable gate array (FPGA), or another programmable logic device, discrete gate or transistor logic device, independent hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
[0154] The memory 620 may include a read-only memory (ROM) and a random-access memory (RAM), and provides an instruction and data to the processor 610. A part of the memory 620 may further include a non-volatile RAM. For example, the memory 620 may further store device type information.
[0155] The bus system 640 may include a power bus, a control bus, a status signal bus, and the like in addition to a data bus. However, for clear description, various types of buses in the figure are marked as the bus system 640.
[0156] In an implementation process, the steps of the method may be completed using an integrated logic circuit of hardware in the processor 610 or an instruction in a software form. Steps of the methods disclosed with reference to the embodiments of the present application may be directly performed and completed by means of a hardware processor, or may be performed and completed using a combination of hardware and software modules in the processor. The software module may be located in a mature storage medium in the field, such as a RAM, a flash memory, a ROM, a programmable ROM, an electrically-erasable programmable memory (EEPROM), or a register. The storage medium is located in the memory 620, and the processor 610 reads information in the memory 620 and completes the steps in the foregoing methods in combination with hardware of the processor. To avoid repetition, details are not described herein again.
[0157] Optionally, in an embodiment, the processor 610 is configured to determine the stability factor according to the stability parameter and a decreasing function relation between the stability factor and the stability parameter.
[0158] Optionally, in another embodiment, the processor 610 is configured to, when the stability parameter is greater than or equal to a first threshold and is less than or equal to a second threshold, determine the stability factor according to the following function relational expression:
k.sub.=A+B,
where k.sub. is the stability factor, is the stability parameter, A is a real number less than 0, and B is a real number greater than 0.
[0159] Optionally, in another embodiment, the processor 610 is configured to, when the stability parameter is less than or equal to a third threshold, determine that the stability factor is a first constant, or when the stability parameter is greater than or equal to a fourth threshold, determine that the stability factor is a second constant, where the third threshold is less than the fourth threshold, both the first constant and the second constant are numbers greater than 0, and the first constant is greater than the second constant.
[0160] Optionally, in another embodiment, the processor 610 is configured to transpose the reference input matrix, to obtain a transposed matrix; multiply the transposed matrix by the reference input matrix, to obtain a first matrix; and determine a value of a determinant of the first matrix as the stability parameter.
[0161] Optionally, in another embodiment, the processor 610 is configured to transpose the reference input matrix, to obtain a transposed matrix; multiply the transposed matrix by the reference input matrix, to obtain a second matrix; and determine, as the stability parameter, a result obtained by taking a logarithm of a value of a determinant of the second matrix.
[0162] Optionally, in another embodiment, the receiver 630 is configured to receive second input signal.
[0163] The processor 610 is further configured to determine, according to the second input signal that are input to the adaptive filter, an input vector of the second input signal; determine an output signal at a current time according to a coefficient of the adaptive filter at the current time, the input vector, and the reference input matrix; and determine a filtering coefficient of the adaptive filter according to the reference input matrix, the output signal, the stability factor, and an update step of the adaptive filter.
[0164] In should be understood that, in this embodiment of the present application, the apparatus 600 according to this embodiment of the present application may correspond to an entity for executing methods in the embodiments of the present application, and may correspond to the apparatus 500, and the foregoing and other operations and/or functions of modules in the apparatus 600 are separately used to implement corresponding procedures of the methods in
[0165] Therefore, according to the apparatus for determining a stability factor of an adaptive filter provided in this embodiment of the present application, a stability factor of an adaptive filter is determined according to a stability parameter of first input signal that is determined according to a reference input matrix of the first input signal of the adaptive filter, so that the stability factor of the adaptive filter can be adaptively obtained according to a stability feature of the first input signal, and the adaptive filter can reach a balance between a convergence speed and steady state error performance.
[0166] A person of ordinary skill in the art may be aware that, in combination with the examples described in the embodiments disclosed in this specification, method steps and units may be implemented by electronic hardware, computer software, or a combination thereof. To clearly describe the interchangeability between the hardware and the software, the foregoing has generally described steps and compositions of each embodiment according to functions. Whether the functions are performed by hardware or software depends on particular applications and design constraint conditions of the technical solutions. A person of ordinary skill in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of the present application.
[0167] It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, reference may be made to a corresponding process in the foregoing method embodiments, and details are not described herein.
[0168] In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely exemplary. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
[0169] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. A part or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
[0170] In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.
[0171] Methods or steps described in the embodiments disclosed in this specification may be implemented by hardware, a software program executed by a processor, or a combination thereof. The software program may reside in a RAM, a memory, a ROM, an electrically programmable ROM (EPROM), an EEPROM, a register, a hard disk, a removable disk, a compact disc-ROM (CD-ROM), or any other form of storage medium known in the art.
[0172] The present application is described in detail with reference to the accompany drawings and in combination with the exemplary embodiments, but the present application is not limited thereto. Various equivalent modifications or replacements can be made to the embodiments of the present application by a person of ordinary skill in the art without departing from the spirit and essence of the present application, and the modifications or replacements shall fall within the scope of the present application.