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

《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。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值