rc2poly
Convert reflection coefficients to prediction filter polynomial
Syntax
a = rc2poly(k)
[a,efinal] = rc2poly(k,r0)
Description
a = rc2poly(k)
converts the reflection
coefficients k
corresponding to the lattice structure to the
prediction filter polynomial a
, with
a(1)
= 1
. The output
a
is row vector of length
length(k)
+ 1.
[a,efinal] = rc2poly(k,r0)
returns
the final prediction error efinal
based on the zero-lag
autocorrelation, r0
.
Examples
Algorithms
rc2poly
computes output a
using Levinson's
recursion [1]. The function
Sets the output vector
a
to the first element ofk
.Loops through the remaining elements of
k
.For each loop iteration
i
,a = [a + a(i-1:-1:1)*k(i) k(i)]
.Implements
a = [1 a]
.
References
[1] Kay, Steven M. Modern Spectral Estimation. Englewood Cliffs, NJ: Prentice-Hall, 1988.
Extended Capabilities
Version History
Introduced before R2006a