skdh.activity.metric_enmo#
- skdh.activity.metric_enmo(accel, wlen, *args, take_abs=False, trim_zero=True, **kwargs)#
Compute the euclidean norm minus 1. Works best when the accelerometer data has been calibrated so that devices at rest measure acceleration norms of 1g.
- Parameters:
- accelnumpy.ndarray
(N, 3) array of acceleration values in g.
- wlenint
Window length (in number of samples) for non-overlapping windows.
- take_absbool, optional
Use the absolute value of the difference between euclidean norm and 1g. Default is False.
- trim_zerobool, optional
Trim values to no less than 0. Default is True.
- Returns:
- enmonumpy.ndarray
(N, ) array of euclidean norms minus 1.