Research Article
PRESEE: An MDL/MML Algorithm to Time-Series Stream Segmenting
Algorithm 1
Segment in slide window.
Input: points in slideWindow Seg = , | batchSize | Output: character points set C = | (1) Put into C | (2) startIndex = 1, length = 1; | (3) While startIndex + length < len do | (4) curIndex = startIndex + length; | (5) = MDLseg(); = | MDLnoseg(, ); | (6) If > then | (7) Put into C; | (8) ++curSize; | (9) If curSize == batchSize then | // enough batch has been processed | (10) Return C; | (11) Else startIndex = curIndex – 1; length = 1; | (12) Else length = length + 1; | (13) If C has only one point do | (14) Return NULL; | (15) Else into C; |
|