当前位置:   article > 正文

rls最小二乘法 c语言,RLS递归最小二乘(最新整理)

rls c语言源码

《RLS递归最小二乘(最新整理)》由会员分享,可在线阅读,更多相关《RLS递归最小二乘(最新整理)(4页珍藏版)》请在人人文库网上搜索。

1、实验二:实现自适应的递归最小二乘法(RLS)一、实验目的利用 matlab 实现自适应的递归最小二乘法(RLS)二、实验过程首先掌握 RLS 算法原理;然后利用 matlab 实现;最后得出结果;三、实验程序%RLS 算法randn(seed,0):%seed 相当于知名了产生随机数的一个起始点rand(seed,0);NoOfData=8000;%设定训练数列点的个数Order=32;%设置自适应滤波器Lambda=0.98;%设置遗忘因子Delta=0.001;%对于 Delta 的初始化x=randn(NoOfData,1);%假设输入为白噪声h=rand(Order,1);%系统随机选。

2、择d=filter(h,1,x);%产生输出%RLS 初始化P=Delta*eye(Order,Order); w=zeros(Order,1);%RLS 自适应for n=Order:NoOfData; u=x(n:-1:n-Order+1); pi_=u*P; k=lambda+pi_*u; K=pi_/k;e(n)=d(n)-w*u; w=w+K*e(n); PPrime=K*pi_;P=(P-PPrime)/Lambda; w_err(n)=norm(h-w);end%画出结果figure(1)plot(20*log10(abs(e); title(Learning Curve);xl。

3、abel(Itergation Number);%迭代次数ylabel(Output Estimation Error in dB);figure(2) semilogy(w_err);title(Weight Estimation Error); xlabel(Itergation Number); ylabel(Weight Error in dB);四、实验结果“”“”At the end, Xiao Bian gives you a passage. Minand once said, people who learn to learn are very happy people. I。

4、n every wonderful life, learning is an eternal theme. As a professional clerical and teaching position, I understand the importance of continuous learning, life is diligent, nothing can be gained, only continuous learning can achieve better self. Only by constantly learning and mastering the latest relevant knowledge, can employees from all walks of life keep up with the pace of enterprise development and innovate to meet the needs of the market. This document is also edited by my studio professionals, there may be errors in the document, if there are errors, please correct, thank you。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/131516
推荐阅读
相关标签
  

闽ICP备14008679号