Research Article

A Three-Dimensional Wireless Indoor Localization System

Algorithm 1

Correction at boundary crossing.
Output: the limit for estimated position
(1)  Input area sequence number
(2)  Get as defined in (40)
(3)  Get the estimated angle for current moving ( ) to calculate the and as is defined in (43) and (42)
(4)  
(5)  for     do
(6) if   ,   inside subarea  then
(7)   
(8)  else
(9)   
(10)  
(11)    +   ;
(12) where