Research Article
MoSeFi: Duration Estimation Robust Human Motion Sensing via Commodity WiFi Device
Algorithm 1
Subcarrier screening module.
Input:: number of subcarriers; : number of CSI packets; : real | parts of CSI ratio; : imaginary parts of CSI ratio; | Output: | 1: \\coarse selection of real part | 2: for to do | 3: | 4: end for | 5: pieces of with middle | 6: \\fine selection of real part | 7: discrete curvature of | 8: for to do | 9: for to do | 10: | 11: end for | 12: end for | 13: groups of with the shorts in | 14: number of subcarriers in | 15: whiledo | 16: Add the group of with the shortest in remained to | 17: number of subcarriers in | 18: end while | 19: \\fine selection of imaginary part | 20: subcarrier indexes of | 21: | 22: discrete curvature of | 23: for to do | 24: forn=m+1 to length (indR-fine) do | 25: | 26: end for | 27: end for | 28: two pieces of I with the shortest in | 29: subcarrier indexes of | 30: |
|