mne_denoise.dss.selection.iterative_outlier_removal#

mne_denoise.dss.selection.iterative_outlier_removal(scores: ndarray, sigma: float = 3.0) int[source]#

Count values removed by iterative mean-plus-sigma thresholding.

At each iteration, values above mean + sigma * std are removed from the remaining scores; the process stops when no value qualifies and returns the number removed.

Parameters:
scoresarray-like

Component scores.

sigmafloat, default=3.0

Threshold multiplier.

Returns:
int

Number of removed scores.