Research Article
A Novel Low-Cost Real-Time Power Measurement Platform for LoWPAN IoT Devices
Algorithm 1
Work state detection algorithm (WSDA).
Input: Sequence of points | Output: Start points of each work state | (1) Assert | (2) INDCANDIDATES () | (3) For to do | (4) If do | (5) | (6) set kth point as the start point. | (7) return | (8) procedure FINDCANDIDATES () | (9) For to do | (10) | (11) | (12) | (13) If and do | (14) add ith point into start point candidate set sequentially | (15) return |
|