Skip to main content
. 2020 Dec 26;21(1):106. doi: 10.3390/s21010106
Algorithm 1: Sliding Window.
Input: the pre-processed sensing data S˜seq={s˜i|i=1,2,,nseq }, window size ws, the starting point of the segment sp, ending point of the segment ep, sliding samples ss
Output: a set of segments W={wj|j=1,2,,nsl }
1: Begin
2: initializesp1, epws and j1
3: while epnseq do
4: wj{s˜spj,s˜sp+1j,,s˜ep1j,s˜epj}
5: Wwj
6: jj+1
7: spsp+ss
8: epsp+ws1
9: endwhile
10: End