Skip to main content
. 2020 Oct 12;20(20):5766. doi: 10.3390/s20205766
Subroutine 2Pattern Learning Subroutine (C)

Input: Ordered candidate pattern set C

Output: Loop pattern set LP

  • 1:

    LP

  • 2:

    for candidate ci!=-1 in C do

  • 3:

    for cj in C[i+1:len(C)] do

  • 4:

      cj -1 if cicj

  • 5:

    end for

  • 6:

    LP.append(ci) if ci!=-1

  • 7:

    end for

  • 8:

    fordi in D do

  • 9:

    SL Sequence Processing Subroutine(di,LP,E)

  • 10:

    for lpi in LP do

  • 11:

      if no sequential lpi,lpi in SL then

  • 12:

       LP.remove(lpi)

  • 13:

      end if

  • 14:

    end for

  • 15:

    end for

  • 16:

    returnLP