Skip to main content
. 2025 Aug 29;25(17):5354. doi: 10.3390/s25175354
Algorithm 2 Convergence algorithm
  • 1:

    Input: Jump Measurement from Instr1 or Instr2, CASE

  • 2:

    %Training phase

  • 3:

    Length of TS = subset of measures is considered for the training phase (TS1 and TS2)

  • 4:

      

  • 5:

    %Create a linear fitting:

  • 6:

    [ma,qa]=linear_fitting(TS1,TS2)

  • 7:

      

  • 8:

    %Test phase:

  • 9:

    Length of TS = subset of measures is considered for the test phase (TS1Test and TS2Test)

  • 10:

      

  • 11:

    if CASE == A then

  • 12:

       TS12=ma∗TS1Test+qa

  • 13:

       Output: TS12

  • 14:

    else

  • 15:

       TS21=1ma∗TS2Test−qa/ma

  • 16:

       Output: TS21

  • 17:

    end if