compute output, error and coefficients using affine projection (ap) algorithm -凯发k8网页登录
compute output, error and coefficients using affine projection (ap) algorithm
description
the dsp.affineprojectionfilter
system object™ filters each channel of the input using ap filter implementations.
to filter each channel of the input:
create the
dsp.affineprojectionfilter
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
syntax
description
returns an
adaptive fir filter system object, apf
= dsp.affineprojectionfilterapf
. this system object computes the filtered output and the filter error for a given input and
desired signal using the affine projection (ap) algorithm.
returns an affine projection filter object with the apf
= dsp.affineprojectionfilter(len
)length
property
set to len
.
returns an affine projection filter object with each specified property set to the
specified value. enclose each property name in single quotes. unspecified properties have
default values.apf
= dsp.affineprojectionfilter(name,value
)
properties
usage
syntax
description
[
filters the input y
,err
] = apf(x
,d
)x
, using d
as the desired
signal, and returns the filtered output in y
and the filter error in
err
. the system object estimates the filter weights needed to
minimize the error between the output signal and the desired signal. 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 apf
filter, call
apf.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 affine projection algorithm (apa) is an adaptive scheme that estimates an unknown system based on multiple input vectors [1]. it is designed to improve the performance of other adaptive algorithms, mainly those that are lms based. the affine projection algorithm reuses old data resulting in fast convergence when the input signal is highly correlated, leading to a family of algorithms that can make trade-offs between computation complexity with convergence speed [2].
the following equations describe the conceptual algorithm used in designing ap filters:
where c is either εi if the initial offset covariance is a scalar ε, or r if the initial offset covariance is a matrix r. the variables are as follows:
variable | description |
---|---|
n | the current time index |
u(n) | the input sample at step n |
uap(n) | the matrix of the last l 1 input signal vectors |
w(n) | the adaptive filter coefficients vector |
y(n) | the adaptive filter output |
d(n) | the desired signal |
e(n) | the error at step n |
l | the projection order |
n | the filter order (i.e., filter length = n 1) |
μ | the step size |
references
[1] k. ozeki, t. umeda, “an adaptive filtering algorithm using an orthogonal projection to an affine subspace and its properties”, electron. commun. jpn. 67-a(5), may 1984, pp. 19–27.
[2] paulo s. r. diniz, adaptive filtering: algorithms and practical implementation, second edition. boston: kluwer academic publishers, 2002.
extended capabilities
version history
introduced in r2013a