Skip to main content
. 2020 Oct 20;20(20):5928. doi: 10.3390/s20205928
Algorithm 2 Batch clock parameter estimator
  • 1:

    Time record table:{{xk,yk}={C1(tk),C2(tk)}:k=1,,N}

    Input:{xN+1,yN+1}={C1(tN+1),C2(tN+1)}

    Output:τ^12, α^12

  • 2:

    Update the table entries {append the new and drop the oldest entry}

  • 3:

    (for incremental model)Calculate the time difference between the table entries

  • 4:

    Calculate the clock-skew using the table entries

  • 5:

    Calculate the time-offset τ^121Nk=1NC1(tk)α^12C2(tk)

  • 6:

    returnα^12 and τ^12