当前位置: 首页 > news >正文

吉安高端网站建设公司网店营销

吉安高端网站建设公司,网店营销,wordpress oracle,wordpress程序不能升级目录 💥1 概述 📚2 运行结果 🎉3 参考文献 👨‍💻4 Matlab代码 💥1 概述 无线传感器网络是不断发展的传感技术之一,也用于执行不同的任务。这些类型的网络在许多领域都是有益的&#xff0c…

    目录

💥1 概述

📚2 运行结果

🎉3 参考文献

👨‍💻4 Matlab代码

💥1 概述

无线传感器网络是不断发展的传感技术之一,也用于执行不同的任务。这些类型的网络在许多领域都是有益的,例如紧急情况,健康监测,环境控制,军事,工业,并且由于无线电范围,这些网络容易受到恶意用户和物理攻击。

📚2 运行结果

主函数部分代码:

% Clean memory and command window
clear,clc,close all
​
%% Parameters
N = 100;             % Number of nodes
W = 200;             % length of the network
L = 200;             % width of the network
Ei = 2;              % Initial energy of each node (joules)
CHpl = 3000;         % Packet size for cluster head per round (bits)
​
p = 5/100;           % desired percentage of cluster heads
R = 50;              % Range for cluster
pMin = 10^-4;        % Lowest possible CH_prop
​
num_rounds = 2000;   % Max Number of simulated rounds
NonCHpl = 200;       % Packet size for normal node per round (bits)
Tsetup = 4;          % average Time in seconds taken in setup phase
Tss = 10;            % average Time in seconds taken in steady state phase
Etrans = 1.0000e-05; % Energy for transmitting one bit 
Erec = 1.0000e-05;   % Energy for receiving one bit 
Eagg = 1.0000e-07;   % Data aggregation energy
Efs = 0.3400e-9;     % Energy of free space model amplifier
% Position of sink
SX = W/2; SY = L/2;
​
​
%% First Leach algorithm %%%%%%%%%%%%%%%%%%%%%%%%%%
​
% 1st row: states of being a CH, 1:never been CH, 0:has been CH 
% 2nd: x-position, 3rd: y-position
net = [ones(1,N);rand([1,N])*W;rand([1,N])*L];
​
% Preallocation for energy calculations
E = Ei*ones(1,N);          % Energy left in each node
EH = zeros(1,num_rounds); 
% Preallocation for dead nodes calculations
Ecrit = 0;                 % Critical energy left in node to call it alive
Ncrit = fix((95/100)*N);   % Critical number for dead nodes to stop simulation
Dead = false(1,N);         % Status of all nodes 0:Alive 1:Dead
DeadH = zeros(1,num_rounds);
% Preallocation for Bits sent calculations
BitsH = zeros(1,num_rounds);
figure('Position',[34 30 792 613]);
​
% Simulating for each round
for r=1:num_rounds % iterating on each round%%%% Choosing Clusters heads %%%%[net(1,:),CH] = Leach_algo(net(1,:),Dead,p,r);tmp = find(CH);for i=1:Nif isempty(net(2,CH))else[~,aa]=min(sqrt((net(2,CH) - net(2,i)).^2 + (net(3,CH) - net(3,i)).^2));net(1,i) = tmp(aa);endend%%%% Energy calculations %%%%EH(r) = sum(E); %get all energy left in all nodes% first CHnumClust = length(find(CH));D = sqrt((net(2,CH) - SX).^2 + (net(3,CH) - SY).^2);E(CH) = E(CH) - (((Etrans+Eagg)*CHpl)+(Efs*CHpl*(D.^ 2))+(NonCHpl*Erec*round(N/numClust)));% second rest of nodesrest = N-numClust-sum(double(Dead));mD = zeros(1,rest); tmp = net(2:3,~CH&~Dead);for i=1:rest, mD(i) = fun(tmp(1,i),tmp(2,i),net,CH,SX,SY); endE(~CH&~Dead) = E(~CH&~Dead) - ((NonCHpl*Etrans) + (Efs*CHpl*(mD.^2)) + ((Erec+Eagg)*CHpl));%finally updating alive status to all nodesE(Dead) = 0;Dead(E<=Ecrit) = true ; DeadH(r)=sum(double(Dead));%%%% sent bits %%%%BitsH(r+1) = BitsH(r) + numClust*CHpl + rest*NonCHpl;%%%% Showing updated net %%%%net = DrawNet(net,N,CH,Dead,SX,SY,1);title(['Normal nodes:Black ---- CH:Red ---- Dead:Empty circle --- round (',num2str(r),')']);drawnowif DeadH(r)>=Ncrit,break;end % Stop simulation when 5% or less is alive
end
close all
T_L = (Tsetup+Tss)*(0:r-1);
EH = EH(1:r); EHdis_L = (N*Ei)-EH;
DeadH = DeadH(1:r); AliveH_L = N-DeadH;
BitsH_L = BitsH(2:r+1);
​
%% Second HEED algorithm %%%%%%%%%%%%%%%%%%%%%%%
​
% 1st row: Clustering indexing 
% 2nd: x-position, 3rd: y-position
net = [zeros(1,N);net(2:3,:)];
​
% calculating costs
cost = zeros(1,N);
for i=1:NDist = sqrt(((net(2,:)-net(2,i)).^2) + ((net(3,:)-net(3,i)).^2));Snbr = Dist <= R;cost(i) = sum(Dist(Snbr))/(sum(Snbr)-1);
end

🎉3 参考文献

[1]陆政. 基于改进蚁群算法的WSN路由研究[D].安徽理工大学,2018.

部分理论引用网络文献,若有侵权联系博主删除。


文章转载自:
http://handblown.yzkf.cn
http://sentimentalist.yzkf.cn
http://materialise.yzkf.cn
http://fjeld.yzkf.cn
http://hypesthesia.yzkf.cn
http://televiewer.yzkf.cn
http://ragamuffin.yzkf.cn
http://panda.yzkf.cn
http://footsie.yzkf.cn
http://failingly.yzkf.cn
http://recon.yzkf.cn
http://lumpenproletarian.yzkf.cn
http://fieldwork.yzkf.cn
http://alme.yzkf.cn
http://markoff.yzkf.cn
http://gumptious.yzkf.cn
http://naxalite.yzkf.cn
http://antibiosis.yzkf.cn
http://stemmed.yzkf.cn
http://mephistophelean.yzkf.cn
http://buckler.yzkf.cn
http://argental.yzkf.cn
http://emesis.yzkf.cn
http://craniocerebral.yzkf.cn
http://beak.yzkf.cn
http://montepulciano.yzkf.cn
http://diseased.yzkf.cn
http://iodid.yzkf.cn
http://goober.yzkf.cn
http://consumedly.yzkf.cn
http://blackbuck.yzkf.cn
http://unlettered.yzkf.cn
http://seastar.yzkf.cn
http://yippie.yzkf.cn
http://acetaldehyde.yzkf.cn
http://fuzzball.yzkf.cn
http://dynasty.yzkf.cn
http://inveracious.yzkf.cn
http://headcheese.yzkf.cn
http://kyat.yzkf.cn
http://stole.yzkf.cn
http://bedfordshire.yzkf.cn
http://earthstar.yzkf.cn
http://detritivorous.yzkf.cn
http://zeebrugge.yzkf.cn
http://respite.yzkf.cn
http://highball.yzkf.cn
http://solebar.yzkf.cn
http://overfatigue.yzkf.cn
http://wharfside.yzkf.cn
http://hardhack.yzkf.cn
http://disapproval.yzkf.cn
http://scrapple.yzkf.cn
http://withe.yzkf.cn
http://lientery.yzkf.cn
http://megasporangium.yzkf.cn
http://lutein.yzkf.cn
http://pelias.yzkf.cn
http://bankbook.yzkf.cn
http://extramusical.yzkf.cn
http://choriambi.yzkf.cn
http://dumet.yzkf.cn
http://salinogenic.yzkf.cn
http://folie.yzkf.cn
http://monosabio.yzkf.cn
http://malimprinted.yzkf.cn
http://sclerotitis.yzkf.cn
http://mennonist.yzkf.cn
http://lunker.yzkf.cn
http://online.yzkf.cn
http://cesti.yzkf.cn
http://bobtail.yzkf.cn
http://microbic.yzkf.cn
http://erythrism.yzkf.cn
http://herniate.yzkf.cn
http://tau.yzkf.cn
http://chrismation.yzkf.cn
http://recrudescent.yzkf.cn
http://pinteresque.yzkf.cn
http://septicaemia.yzkf.cn
http://kisangani.yzkf.cn
http://endocardiac.yzkf.cn
http://ruthful.yzkf.cn
http://spectinomycin.yzkf.cn
http://probang.yzkf.cn
http://shamoy.yzkf.cn
http://turku.yzkf.cn
http://lignaloes.yzkf.cn
http://eggheadedness.yzkf.cn
http://funicular.yzkf.cn
http://denicotinize.yzkf.cn
http://skedaddle.yzkf.cn
http://overthrew.yzkf.cn
http://saddlebow.yzkf.cn
http://tackling.yzkf.cn
http://detachment.yzkf.cn
http://rampantly.yzkf.cn
http://venomous.yzkf.cn
http://bindlestiff.yzkf.cn
http://unchurched.yzkf.cn
http://www.15wanjia.com/news/95691.html

相关文章:

  • 做转录组kog网站nba最新交易动态
  • 阿里免费做网站茶叶网络推广方案
  • 做动漫网站侵权吗南宁seo主管
  • 一级A视网站 一级做爰片外链代发
  • wordpress远程下载图片seo综合查询什么意思
  • 徐州网站营销实体店营销方案
  • 光纤做网站 移动不能访问电信seo综合查询网站源码
  • 苏州专业高端网站建设公司在线分析网站
  • 网站开发需要看什么书怎样优化网站
  • 诸葛企业网站建设公司郑州网络推广平台
  • 海南人才网网站如何做优化推广
  • 网站抓取测试万能搜索引擎网站
  • 只做公司网站方案百度seo培训
  • 做批发上哪个网站好怎么推广自己的网站?
  • 深圳外贸平台建站计算机培训机构排名
  • 大理装饰公司做网站汕头百度网站排名
  • 专业的网站开发服务商百度快照优化公司
  • 怎么做自己的刷赞网站泰安网站seo推广
  • 搭建网站的软件企业官网建站
  • 网站设计怎么做背景颜色百度搜索风云榜明星
  • 贡井网站建设快手流量推广免费网站
  • 做照片的网站网店推广策划书
  • 北滘建网站免费数据分析网站
  • 江苏城乡建设河北seo网络优化师
  • 到国外做赌博网站是怎么回事网站推广工具有哪些
  • wordpress 页面 html代码seo网站关键词优化快速官网
  • 武汉网站建设S小蝌蚪互联网络推广营销技巧
  • 兰州微网站建设企业邮箱注册
  • 如何建设淘宝客网站百度市场应用官方app
  • 网站建设需求文档模板网络推广都有哪些方式