skdh.activity.metric_hfenplus#
- skdh.activity.metric_hfenplus(accel, wlen, fs, cutoff=0.2, trim_zero=True, **kwargs)#
Compute the high-pass filtered euclidean norm plus the low-pass filtered euclidean norm minus 1g.
- Parameters:
- accelnumpy.ndarray
(N, 3) array of acceleration values in g.
- wlenint
Window length (in number of samples) for non-overlapping windows.
- fsfloat
Sampling frequency of accel in Hz.
- cutofffloat, optional
Cutoff in Hz for both high and low filters. Default is 0.2Hz.
- trim_zerobool, optional
Trim values to no less than 0. Default is True.
- Returns:
- hfenpnumpy.ndarray
(N, ) array of high-pass filtered acceleration norm added to the low-pass filtered norm minus 1g.