Research Article
Study of Hybrid Localization Noncooperative Scheme in Wireless Sensor Network
Algorithm 2
WCL with four anchor nodes.
Procedure Anchor() | Repeat | Move to a new position for each to 5 | transmission a packet including its ID, coordinate at the time; | Until finish | End procedure | procedure SourceNode() | repeat | Receive information from Anchor (); | Calculate according to (3); | until finish | Sort the anchor information at time; | for all the information IN at the same time | if or | Estimate position according to (5); | else | Discard IN; | end for | Use average of all estimated positions as the final value; | end procedure |
|