<< levinson FOSSEE Signal Processing Toolbox lsf2poly >>

FOSSEE Signal Processing Toolbox >> FOSSEE Signal Processing Toolbox > lpc

lpc

Linear prediction filter coefficients

Calling Sequence

[a,g] = lpc(x)
[a,g] = lpc(x,p)

Description

[a,g] = lpc(x,p) Determines the coefficients of a pth order forward linear predictor filter by minimizing the squared error. If p is unspecified, a default value of length(x)-1 is used.

Parameters

x:

double

p:

int, natural number, scalar

a:

double

g:

double

Examples

1)
noise = randn(20000,1);
x = filter(1,[1 1/5 1/3 1/4],noise);
x = x(15904:20000);
[a,g] = lpc(x,3);

References
[1] Hayes, Monson H. Statistical digital signal processing and modeling.
John Wiley & Sons, 2009, pg. 220

See also

Authors


Report an issue
<< levinson FOSSEE Signal Processing Toolbox lsf2poly >>