Skip to main content
. 2020 Oct 12;20(20):5766. doi: 10.3390/s20205766
Subroutine 3Sequence Processing Subroutine (σ,S,E)

Input: Any sequence σ, given ordered list S and event set E

Output: A split-list SL obtained from splitting σ by S and E sequentially

  σ0σ

  SL =

  for si in S(i[1,|S|]) do

   σi replace si by ’-’+si+’-’ in σi1

  end for

  σ|S|.replace(’–’,’-’)

  for each symbol sp in σ|S|[1:1].split(’-’) do

   if sp in S then

    SL.append(sp)

   else

    SL.append(sp split by basic events ei)

   end if

  end for

  return SL