mne_features.univariate.compute_zero_crossings

mne_features.univariate.compute_zero_crossings(data, threshold=2.220446049250313e-16)

Number of zero-crossings (per channel).

The threshold parameter is used to clip ‘small’ values to zero. Changing its default value is likely to affect the number of zero-crossings returned by the function.

Parameters
datandarray, shape (n_channels, n_times)
thresholdfloat (default: np.finfo(np.float64).eps)

Threshold used to determine when a float should de treated as zero.

Returns
outputndarray, shape (n_channels,)

Notes

Alias of the feature function: zero_crossings

Fork me on GitHub