compute output, error and coefficients using recursive least squares (rls) algorithm -凯发k8网页登录
compute output, error and coefficients using recursive least squares (rls) algorithm
description
the dsp.rlsfilter
system object™ filters each channel of the input using rls filter implementations.
to filter each channel of the input:
create the
dsp.rlsfilter
object and set its properties.call the object with arguments, as if it were a function.
to learn more about how system objects work, see what are system objects?
creation
description
returns an adaptive
rls filter system object, rlsfilt
= dsp.rlsfilterrlsfilt
. this system object computes the filtered output, filter error, and the filter weights for a
given input and desired signal using the rls algorithm.
returns an rls filter system object, rlsfilt
= dsp.rlsfilter(len
)rlsfilt
. this system object has the length
property set to
len
.
returns an rls filter system object with each specified property set to the specified value. enclose each
property name in single quotes. unspecified properties have default values.rlsfilt
= dsp.rlsfilter(name,value
)
properties
usage
description
[
shows the output of the rls filter along with the error, y
,e
] =
rlsfilt(x
,d
)e
, between
the reference input and the desired signal. the filters adapts its coefficients until the
error e
is minimized. you can access these coefficients by accessing
the coefficients
property of the object. this can be done only after
calling the object. for example, to access the optimized coefficients of the
rlsfilt
filter, call rlsfilt.coefficients
after
you pass the input and desired signal to the object.
input arguments
output arguments
object functions
to use an object function, specify the
system object as the first input argument. for
example, to release system resources of a system object named obj
, use
this syntax:
release(obj)
examples
algorithms
the dsp.rlsfilter
system object, when conventional rls
is selected, recursively
computes the least squares estimate (rls) of the fir filter weights.
the system object estimates the filter weights or coefficients,
needed to convert the input signal into the desired signal. the input
signal can be a scalar or a column vector. the desired signal must
have the same data type, complexity, and dimensions as the input signal.
the corresponding rls filter is expressed in matrix form as p(n)
:
where λ-1 denotes the reciprocal of the exponential weighting factor. the variables are as follows:
variable | description |
---|---|
n | the current time index |
u(n) | the vector of buffered input samples at step n |
p(n) | the conjugate of the inverse correlation matrix at step n |
k(n) | the gain vector at step n |
k*(n) | complex conjugate of k |
w(n) | the vector of filter tap estimates at step n |
y(n) | the filtered output at step n |
e(n) | the estimation error at step n |
d(n) | the desired response at step n |
λ | the forgetting factor |
u, w, and k are all column vectors.
references
[1] m hayes, statistical digital signal processing and modeling, new york: wiley, 1996.
[2] s. haykin, adaptive filter theory, 4th edition, upper saddle river, nj: prentice hall, 2002 .
[3] a.a. rontogiannis and s. theodoridis, "inverse factorization adaptive least-squares algorithms," signal processing, vol. 52, no. 1, pp. 35-47, july 1996.
[4] s.c. douglas, "numerically-robust o(n2) rls algorithms using least-squares prewhitening," proc. ieee int. conf. on acoustics, speech, and signal processing, istanbul, turkey, vol. i, pp. 412-415, june 2000.
[5] a. h. sayed, fundamentals of adaptive filtering, hoboken, nj: john wiley & sons, 2003.
extended capabilities
version history
introduced in r2013a