mne_denoise.qa.channel_variance_ratio#

mne_denoise.qa.channel_variance_ratio(data_before: ndarray, data_after: ndarray) ndarray[source]#

Compute after/before variance for each channel.

Parameters:
data_beforendarray, shape (n_channels, n_times) or (n_epochs, n_channels, n_times)

Data before cleaning.

data_afterndarray

Data after cleaning with the same shape.

Returns:
ndarray, shape (n_channels,)

Variance ratio pooled over time, or epochs and time. Zero denominators are replaced with machine epsilon.