<< NARVAL_T_LocalityConnex NARVAL NARVAL_T_Ntg >>

NARVAL >> NARVAL > NARVAL_T_LocalityRanges

NARVAL_T_LocalityRanges

Generate a network topology in respect with the Locality method (communication range defined for each node).

Calling Sequence

[g] = NARVAL_T_LocalityRanges(nodx,nody,L,d)

Parameters

nodx :

x-coordinates of network nodes.

nody :

y-coordinates of network nodes.

L :

network squared area side.

d :

Locality radius vector.

g :

network graph.

Description

NARVAL_T_LocalityRanges creates the network topology g in respect with the Locality method. The communication range of the node i is stored in d(i). The node i is located in [nodx(i) nody(i)].

n nodes are located inside a square of side L. The probability to create a link between the two nodes Ni and Nj depends on their distance dij and the minimum of their Locality radius R=min[di dj]. If dij is inferior to R, a link is created.

Examples

L=1000;//network squared area side
Lx=L;
Ly=L;
tl=3;//number of lines
tc=3;//number of columns
T=tl*tc;//grid size
d=300*ones(1,T);//locality radius
[g]=NARVAL_T_Grid(tl,tc,Lx,Ly);//backbone grid
nodx=g.node_x;//x-coordinates
nody=g.node_y;//y-coordinates
NT=5;//subnetwork size
dd=L/10;//locality radius
for i=1:T
nodxx=nodx(i)+NARVAL_F_XYRand(NT,dd)-dd/2;//subnetwork
nodyy=nody(i)+NARVAL_F_XYRand(NT,dd)-dd/2;
nodx=[nodx nodxx];//x-cordinates
nody=[nody nodyy];//y-coordinates
end
d=[d dd*ones(1,NT*T)];locality radius vector
[g]=NARVAL_T_LocalityRanges(nodx,nody,L,d);//application of NARVAL_T_LocalityRanges
g.node_diam=[30*ones(1,T) 10*ones(1,NT*T)];
ind=1;//window index
f=NARVAL_G_ShowGraph(g,ind);//graph visualization

Dependency

NARVAL_F_Distance, NARVAL_G_MakeGraph, NARVAL_G_EdgeLength

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_T_LocalityConnex NARVAL NARVAL_T_Ntg >>