Research Article
Wearable Sensor-Based Location-Specific Occupancy Detection in Smart Environments
Algorithm 3
Locomotive speaker-counting
| Input: Accelerometer Sensor Data, , Total number of data points = | | Output: Binary Speaker Count | | for do | | | | if then | | else | | | | | | for do | | | | | | | for do | | | | for do | | for do | | tmp_sum = | | | | if then | | num_effective_cp = num_effective_cp + 1 | | if then | | occupancy = 1 | | return |
|