|
Algorithm 1 Cloud-based Data Analysis |
Inputs: ya, yb, α, β, , Output: Event code (0, 1, 2)
Normalize all the time series so that all time series y and xb have a value between 0 and 1, inclusive.
Normalize xa based on the maximum distance expected between the sensor and the user.
Calculate DTW alignment cost between yb, xb
event = 0
if cost(yb, ) < α and
< β, then
event = 1
else if cost(yb, ) < α and
> β, then
event = 2
|