mne_hfo.utils.compute_line_length¶
-
mne_hfo.utils.
compute_line_length
(signal, win_size=6)[source]¶ Calculate line length.
- Parameters
signal: numpy array
1D signal to be transformed
win_size: int
Number of the points of the window (default=6)
- Returns
line_length: numpy array
Line length transformed signal
Notes
return np.mean(np.abs(np.diff(data, axis=-1)), axis=-1)
References
- 1
Esteller, R. et al. (2001). Line length: an efficient feature for seizure onset detection. In Engineering in Medicine and Biology Society, 2001. Proceedings of the 23rd Annual International Conference of the IEEE (Vol. 2, pp. 1707-1710). IEEE.
- 2
Dümpelmann et al, 2012. Clinical Neurophysiology: 123 (9): 1721-31.