- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
无线传感器网络deec算法(DEEC algorithm for Wireless Sensor Networks)
无线传感器网络deec算法(DEEC algorithm for Wireless Sensor Networks)
Clear
%1. initial parameter setting module
% sensor node area limit (unit M)
Xm=100;
Ym=100;
% (1) aggregation section coordinates are given
Sink.x=0.5*xm;
Sink.y=0.5*ym;
The zone number is%
N=100
% cluster head optimization ratio (probability of clustering header)
P=0.1;
% energy model (unit coke)
% initialization energy model
Eo=0.5;
%Eelec=Etx=Erx
ETX=50*0.000000001;
ERX=50*0.000000001;
%Transmit Amplifier types
Efs=10*0.000000000001;
Emp=0.0013*0.000000000001;
%Data Aggregation Energy
EDA=5*0.000000001;
Percent percentage of high energy nodes beyond a nodes energy
A=1;
% maximum cycle times
Rmax=5000
% calculates the parameter do
Do=sqrt (Efs/Emp);
Et=0;
%2. wireless sensor network model generation module
% build a wireless sensor network, evenly distribute 100 nodes in the region, and draw a graph
For i=1:1:n
S (I).Xd=rand (1,1) *xm;
XR (I) =S (I).Xd;
S (I).Yd=rand (1,1) *ym;
YR (I) =S (I).Yd;
S (I).G=0;
S (I).E=Eo* (1+rand*a);
E (I) = S (I).E;
Et=Et+E (I);
%initially, there, are, no, cluster, heads, only, nodes
S (I).Type=N;
End
D1=0.765*xm/2;
K=sqrt (0.5*n*do/pi) *xm/d1^2;
D2=xm/sqrt (2*pi*K);
Er=4000* (2*n*ETX+n*EDA+K*Emp*d1^4+n*Efs*d2^2);
S (n+1).Xd=sink.x;
S (n+1).Yd=sink.y;
%3. network operation module
% cluster head node number
CountCHs=0;
Cluster=1;%, the purpose of this definition is simply to give a subscript parameter starting at 1, and the true cluster head should be subtracted 1
Flag_first_dead=0;
Flag_teenth_dead=0;
Flag_all_dead=0;
% dead nodes
Dead=0;
First_dead=0;
Teenth_dead=0;
All_dead=0;
% active node number
Allive=n;
%counter, for, bit, transmitted, to, Bases, Station, and,, to, Cluster, Heads
Packets_TO_BS=0;
Packets_TO_CH=0;
% (1) loop mode setting
For r=0:1:rmax%, the for loop will include all of the following programs until the last end ends the loop
R
% every round robin cycle (this procedure is 10) makes the nodes S (I).G parameter (which is used for subsequent cluster electio
您可能关注的文档
- 推动全社会树立法治意识(Promote the whole society to establish a sense of rule of law).doc
- 推动绿色发展促进世界经济健康复苏和可持续发展(Promote green development and promote healthy recovery and sustainable development of the world economy).doc
- 推广好用的(Promote the use of good).doc
- 推广注意事项(Promotional notes).doc
- 推拿意外的预防及处理(Prevention and treatment of massage accidents).doc
- 探索三角形全等的条件 - 阳光学习网(Explore the condition of congruent triangles - the sun Learning Web).doc
- 推箱子答案(Push box answers).doc
- 推进收入分配改革需要什么(What needs to be done to promote the reform of income distribution).doc
- 推进会计电算化发展的对策与建议(Countermeasures and suggestions for promoting the development of computerized accounting).doc
- 描写人物外貌的好句子(A good sentence describing the appearance of a person).doc
- 解码大语言模型的“黑箱”:当前可解释性研究的前沿方法与实践.docx
- 《工业视觉缺陷检测算法的鲁棒性提升与落地》_算法工程师(CV).docx
- 《当世界年纪还小的时候》想象作文_小学语文.docx
- 解读与撰写“项目式学习(PBL)成果报告”,掌握学术性表达的规范与逻辑_语文(实用性阅读).docx
- 2025年度采购战略实施与供应商体系优化工作总结暨成本控制复盘_采购经理.docx
- 探究英语中源自汉语的“外来词”,及其反映的文化交流现象_英语(文化意识).docx
- 大语言模型在历史事件因果关系分析中的应用.docx
- 2025年跨境电商VAT申报与税务合规支持总结_数字税务顾问.docx
- 2025年高峰论坛议程设置与演讲嘉宾邀请执行_行业技术峰会主持人.docx
- 实战演练:识别与防范常见的网络钓鱼邮件与诈骗短信 _高中体育与健康.docx
最近下载
- 2024江苏信息职业技术学院单招《英语》测试卷及完整答案详解(各地真题).docx VIP
- 第13课 中国来信改变了我的生活.pptx VIP
- 英语专八阅读理解精讲.pdf VIP
- [教学设计]信息科技 四年级上册 第一单元 第5课 数据价值巧发现.docx VIP
- 机械设计课程设计闸门启闭机说明书.doc VIP
- 市民中心项目EPC工程总承包招标文件.pdf VIP
- 胶原及胶原蛋白在保健中的作用.docx VIP
- 江苏信息职业技术学院单招《数学》预测复习及答案详解【真题汇编】.docx VIP
- 学校食堂食材采购工作实施方案.docx VIP
- QYJK P20092—2018《DCDC变换器设计规范》.pdf VIP
原创力文档


文档评论(0)