@@ -24,7 +24,7 @@ class ASR:
2424 ----------
2525 sfreq : float
2626 Sampling rate of the data, in Hz.
27- cutoff: float
27+ cutoff : float
2828 Standard deviation cutoff for rejection. X portions whose variance
2929 is larger than this threshold relative to the calibration data are
3030 considered missing data and will be removed. The most aggressive value
@@ -63,18 +63,18 @@ class ASR:
6363
6464 Attributes
6565 ----------
66- `` zi_`` : array, shape=(n_channels, filter_order)
66+ zi_ : array, shape=(n_channels, filter_order)
6767 Filter initial conditions.
68- `` ab_`` : 2-tuple
68+ ab_ : 2-tuple
6969 Coefficients of an IIR filter that is used to shape the spectrum of the
7070 signal when calculating artifact statistics. The output signal does not
7171 go through this filter. This is an optional way to tune the sensitivity
7272 of the algorithm to each frequency component of the signal. The default
7373 filter is less sensitive at alpha and beta frequencies and more
7474 sensitive at delta (blinks) and gamma (muscle) frequencies.
75- `` cov_`` : array, shape=(channels, channels)
75+ cov_ : array, shape=(channels, channels)
7676 Previous covariance matrix.
77- `` state_`` : dict
77+ state_ : dict
7878 Previous ASR parameters (as derived by :func:`asr_calibrate`) for
7979 successive calls to :meth:`transform`. Required fields are:
8080
@@ -286,11 +286,6 @@ def clean_windows(X, sfreq, max_bad_chans=0.2, zthresholds=[-3.5, 5],
286286 a channel must lie (relative to a robust estimate of the clean EEG
287287 power distribution in the channel) for it to be considered "not bad".
288288 (default=[-3.5, 5]).
289-
290- The following are detail parameters that usually do not have to be tuned.
291- If you can't get the function to do what you want, you might consider
292- adapting these to your data.
293-
294289 win_len : float
295290 Window length that is used to check the data for artifact content.
296291 This is ideally as long as the expected time scale of the artifacts
@@ -316,6 +311,13 @@ def clean_windows(X, sfreq, max_bad_chans=0.2, zthresholds=[-3.5, 5],
316311 sample_mask : boolean array, shape=(1, n_samples)
317312 Mask of retained samples (logical array).
318313
314+ Notes
315+ -----
316+ ``win_len``, ``win_overlap``, ``min_clean_fraction`` and
317+ ``max_dropout_fraction`` are detail parameters that usually do not have to
318+ be tuned. If you can't get the function to do what you want, you might
319+ consider adapting these to your data.
320+
319321 """
320322 assert 0 < max_bad_chans < 1 , "max_bad_chans must be a fraction !"
321323
@@ -441,7 +443,7 @@ def asr_calibrate(X, sfreq, cutoff=5, blocksize=100, win_len=0.5,
441443 or more).
442444 sfreq : float
443445 Sampling rate of the data, in Hz.
444- cutoff: float
446+ cutoff : float
445447 Standard deviation cutoff for rejection. X portions whose variance is
446448 larger than this threshold relative to the calibration data are
447449 considered missing data and will be removed. The most aggressive value
0 commit comments