Engee documentation

rc2ac

Conversion of reflection coefficients into an autocorrelation sequence.

Library

EngeeDSP

Syntax

Function call

  • r = rc2ac(k,r0) — returns autocorrelation coefficients r the output signal of a discrete filter predictive errors calculated on the basis of reflection coefficients k for a lattice structure and an initial value of zero-delay autocorrelation r0.

Arguments

Input arguments

# k — reflection coefficients

+ vector

Details

A list of reflection coefficients specified as a vector.

Типы данных

Float32, Float64

Support for complex numbers

Yes

# r0 — zero-delay autocorrelation

+ scalar

Details

Zero-delay autocorrelation, given as a scalar.

Типы данных

Float32, Float64

Support for complex numbers

Yes

Output arguments

# r is an autocorrelation sequence

+ column vector

Details

An autocorrelation sequence returned as a column vector of length , where — vector length k.

Examples

Calculation of the autocorrelation sequence

Details

We define the autocorrelation sequence corresponding to a given vector of reflection coefficients k and the initial value of the autocorrelation at zero delay r0.

import EngeeDSP.Functions: rc2ac

k = [0.3090 0.9800 0.0031 0.0082 -0.0082]
r0 = 0.1
a = rc2ac(k, r0)
6-element Vector{Float64}:
  0.09999999999999934
 -0.03089999999999965
 -0.07909476199999964
  0.07866265341159544
  0.029362938197534588
 -0.0950000097439273

Literature

  1. Kay, Steven M. Modern Spectral Estimation. Englewood Cliffs, NJ: Prentice-Hall, 1988.