User Tools

Site Tools


tutorials:sensor-grids

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:sensor-grids [2024/12/08 20:24] – created MHtutorials:sensor-grids [2024/12/10 22:31] (current) – extended a bit MH
Line 60: Line 60:
  
 {{ :tutorials:SensorGrid.png?direct&500 |}} {{ :tutorials:SensorGrid.png?direct&500 |}}
 +
 +Note: The above code works fine as long as the number of sensor nodes is moderate, e.g., below 100. The drawback of the above code it that it connects all sensor nodes to one parent, what, unfortunately, will slow down computation when the number of children is getting too large. If more sensor nodes are required, be advised implementation uses two helper nodes in order to generate an (internal) tree structure instead of sensor nodes. This will nothing change for the user, but will allow easily thousands of sensor nodes if wanted.
 +
 +The 'large number of sensor node save code' would look like given below:
 +<code java>
 +{
 +  float xi, yi, zi;
 +}
 +for (int x=0;x<6; x++) (
 +  [Node
 +  for (int y=0;y<6; y++) (
 +    [Node
 +    for (int z=0;z<3; z++) (
 +      [
 +        {
 +          xi =-2+0.75*x;
 +          yi =-2+0.75*y;
 +          zi =0.5*z; 
 +        }
 +        Null(xi, yi, zi) SensorElement(xi, yi, zi)
 +      ]
 +    ])
 +  ])
 +)
 +</code>
 +
  
 The last thing to do in order to make really use of sensor grid is to obtain the sensed radiation for the sensor nodes and also may want to export them for further/external analysis.  The last thing to do in order to make really use of sensor grid is to obtain the sensed radiation for the sensor nodes and also may want to export them for further/external analysis. 
tutorials/sensor-grids.1733685882.txt.gz · Last modified: 2024/12/08 20:24 by MH