| Algorithm 1: Sliding Window. | |
| Input: | the pre-processed sensing data , window size , the starting point of the segment , ending point of the segment , sliding samples |
| Output: | a set of segments |
| 1: | Begin |
| 2: | initialize, e and |
| 3: | while e do |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | e |
| 9: | endwhile |
| 10: | End |