This is where navigation should be.


GSP_DAVID_SENSOR_NETWORK - Initialize a sensor network

Usage

G=gsp_david_sensor_network(N);

Input parameters

N Number of vertices (default 64)

Output parameters

G Graph structure.

Description

'gsp_david_sensor_network(N)' initializes a graph structure containing the weighted adjacency matrix (G.W), the number of vertices (G.N), the plotting coordinates (G.coords), and the plotting coordinate limits (G.limits) of a random sensor network with N vertices. The sensors are placed randomly in the unit square, and edges are placed between any sensors within a fixed radius of each other. The edge weights are assigned via a thresholded Gaussian kernel. The sensor network will be connected for \(N=500\) or \(N=64\).

Warning: this graph is not necessarly connected...

Example:

G = gsp_david_sensor_network(64);
paramplot.show_edges = 1;
gsp_plot_graph(G,paramplot);
gsp_david_sensor_network_1_1.png