Skip to main content
. 2017 Jun 2;17(6):1275. doi: 10.3390/s17061275
Algorithm 1 Delaunay Triangulation Inside/Outside Decision Based on APIT
  • Input: Delaunay triangulation of an experiment site, the RSSI of an object node and its surrounding nodes; 

  • Output: the sequential triangular regions where the monitored object resides for a period of time;  

  • 1. Set all accumulated variables ADTi to initial value 0;  

  • 2. for (each position corresponding to a regular time interval on the trajectory) 

  • 3. for (each triangular unit DTi

  • 4. { 

  • 5. if (APIT(DTi) == outside) ADTi maintains unchanged; 

  • 6. if (APIT(DTi) == inside) ADTi incremented by 1; 

  • 7. } 

  • 8. Find the sequential triangular regions with the adjacent maximal accumulated values.