Algorithm 3: CP Estimation on
based on the Intercept Theorem.
|
Initialization: Obtain the coordinates of all wireless sensor nodes, as well as the topology information of all LOSLs, that is, their formulas. |
-
Step 1.
Launch the algorithm when is triggered;
-
Step 2.
Successively check whether is parallel with in the reverse order, ;
while (1)
if
is parallel to
Obtain the elapsed time ratio according to Equation (14):
else
Check next LOSL by:
end
end
-
Step 3.
Retrieve the formula of , and obtain the intersections:
is the intersection of and
is the intersection of and
-
Step 4.
Estimate the CP according to Equation (15):
.
|