求线性预测自相关法Levinson-Durbin算法或协方差法的C或C++实现

[复制链接]
查看11 | 回复3 | 2009-4-2 21:50:50 | 显示全部楼层 |阅读模式
及最后预测过程
线性预测出的波形幅度是不是会衰减

回复

使用道具 举报

千问 | 2009-4-2 21:50:50 | 显示全部楼层
Syntaxr = rlevinson(a,efinal)[r,u] = rlevinson(a,efinal)[r,u,k] = rlevinson(a,efinal)[r,u,k,e] = rlevinson(a,efinal)DescriptionThe reverse Levinson-Durbin recursion implements the step-down algorithm for solving the following symmetric Toeplitz system of linear equations for r, where r = [r(1) L r(p+1)] and r(i)*...
回复

使用道具 举报

千问 | 2009-4-2 21:50:50 | 显示全部楼层
#include #include #include const int order=8;const int N=256;const int RequestN=1024;const float PI=3.14159;float signal[N];//输入已...
回复

使用道具 举报

千问 | 2009-4-2 21:50:50 | 显示全部楼层
协方差的计算机公式为Sxy=(∑(xi-x^)(yi-y^))/(n-1),i=0,1,2...,n-1,这里^表示平均值下面就是协方差法的C实现,并且给了一个main函数进行验证:#include #include void cox(int x[],int y[],int n,double *...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行