mne_hfo.utils.compute_line_length#

mne_hfo.utils.compute_line_length(signal, win_size=6)[source]#

Calculate line length.

See [1] and [2].

Parameters:
signalnumpy array

1D signal to be transformed.

win_sizeint

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