Skip to main content
. 2026 Jul 12;26(14):4431. doi: 10.3390/s26144431
Algorithm 2. Initial Guesses matrix selection algorithm
Input: sensor.coord=xH1xH2…xHN ,
    TDOA= TDOA1TDOA2…TDOAmTDOA1, range
  1. Arrange sensors and relevant TDOA clockwise

  2. if all TDOA≠0 do

  3.    for i=1:lengthTDOA do

  4.        if TDOAi+1>0 and TDOAi<0 do

  5.            Determine the set of Initial Guesses in the selected area

  6.            exit loop

  7.        end if

  8.    end for

  9.    if no guesses found do

  10.        for i=1:lengthTDOA do

  11.            if TDOAi+1<0 and TDOAi>0 do

  12.                 Determine the set of Initial Guesses in the selected area

  13.                 exit loop

  14.            end if

  15.        end for

  16.    end if

  17.    if no guesses found do

  18.        for i=1:lengthTDOA do

  19.            if TDOAi+1>0 and TDOAi>0 do

  20.                 Determine the set of Initial Guesses in the selected area

  21.                 exit loop

  22.            end if

  23.        end for

  24.    end if

  25.    if no guesses found do

  26.        for i=1:lengthTDOA do

  27.            if TDOAi+1<0 and TDOAi<0 do

  28.                 Determine the set of Initial Guesses in the selected area

  29.                 exit loop

  30.            end if

  31.        end for

  32.    end if

  33. elseif one TDOA=0 or (multiple TDOA=0 and all cross points are out of range) do

  34.    Determine the set of Initial Guess’s on TDOA = 0 line(s) starting from cross point

  35. else do

  36.     Determine one Initial point as cross point of TDOA=0 lines

  37. end if

Output: Initial.Guesses