Skip to content

Commit

Permalink
formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hritwik authored and Hritwik committed Feb 13, 2021
1 parent c9b60b0 commit d729c56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ILEACH_setParameters.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
Sinkx=0.5*Area.x;
Sinky=Sinkx;


%Optimal Election Probability of a node to become cluster head
p=0.1;

Expand Down Expand Up @@ -51,6 +50,7 @@
%Radio Range
RR=0.5*Area.x*sqrt(2);

% I-LEACH
numRx=fix(sqrt(p*n));
dr=Area.x/numRx;
%%%%%%%%%%%%%%%%%%%%%%%%% END OF PARAMETERS %%%%%%%%%%%%%%%%%%%%%%%%
Expand All @@ -72,6 +72,10 @@
Model.HpacketLen=HpacketLen;
Model.NumPacket=NumPacket;
Model.RR=RR;


% I-LEACH
Model.numRx=numRx;
Model.dr=dr;

end

0 comments on commit d729c56

Please sign in to comment.