1
function [sm,fr]=mese(x,npts);
2
//<sm,fr]=mese(x [,npts]);
3
//Calculate the maximum entropy spectral estimate of x
4
// x :Input sampled data sequence
5
// npts :Optional parameter giving number of points of fr and sm
7
// sm :Samples of spectral estimate on the frequency grid fr
8
// fr :npts equally spaced frequency samples in [0,.5)
10
// author: C. Bunks date: 24 August 1988
11
// revised: 9 April 1991
21
//estimate autocorrelation function of x
24
r=convol(x,x(Nx:-1:1))
27
//get solution to the Yule-Walker equations
29
[ar,sigma2,rc]=lev(r);
34
[sf,fr]=frmag(ak,npts);
35
sm=sigma2*ones(sf)./(sf.*conj(sf));