MCPcopy
hub / github.com/mne-tools/mne-python / Xdawn

Class Xdawn

mne/preprocessing/xdawn.py:215–533  ·  view source on GitHub ↗

Implementation of the Xdawn Algorithm. Xdawn :footcite:`RivetEtAl2009,RivetEtAl2011` is a spatial filtering method designed to improve the signal to signal + noise ratio (SSNR) of the ERP responses. Xdawn was originally designed for P300 evoked potential by enhancing the target resp

Source from the content-addressed store, hash-verified

213
214
215class Xdawn(XdawnTransformer):
216 """Implementation of the Xdawn Algorithm.
217
218 Xdawn :footcite:`RivetEtAl2009,RivetEtAl2011` is a spatial
219 filtering method designed to improve the signal to signal + noise
220 ratio (SSNR) of the ERP responses. Xdawn was originally designed for
221 P300 evoked potential by enhancing the target response with respect
222 to the non-target response. This implementation is a generalization
223 to any type of ERP.
224
225 Parameters
226 ----------
227 n_components : int, (default 2)
228 The number of components to decompose the signals.
229 signal_cov : None | Covariance | ndarray, shape (n_channels, n_channels)
230 (default None). The signal covariance used for whitening of the data.
231 if None, the covariance is estimated from the epochs signal.
232 correct_overlap : 'auto' or bool (default 'auto')
233 Compute the independent evoked responses per condition, while
234 correcting for event overlaps if any. If 'auto', then
235 overlapp_correction = True if the events do overlap.
236 reg : float | str | None (default None)
237 If not None (same as ``'empirical'``, default), allow
238 regularization for covariance estimation.
239 If float, shrinkage is used (0 <= shrinkage <= 1).
240 For str options, ``reg`` will be passed as ``method`` to
241 :func:`mne.compute_covariance`.
242
243 Attributes
244 ----------
245 filters_ : dict of ndarray
246 If fit, the Xdawn components used to decompose the data for each event
247 type, else empty. For each event type, the filters are in the rows of
248 the corresponding array.
249 patterns_ : dict of ndarray
250 If fit, the Xdawn patterns used to restore the signals for each event
251 type, else empty.
252 evokeds_ : dict of Evoked
253 If fit, the evoked response for each event type.
254 event_id_ : dict
255 The event id.
256 correct_overlap_ : bool
257 Whether overlap correction was applied.
258
259 See Also
260 --------
261 mne.decoding.CSP, mne.decoding.SPoC
262
263 Notes
264 -----
265 .. versionadded:: 0.10
266
267 References
268 ----------
269 .. footbibliography::
270 """
271
272 def __init__(

Callers 8

xdawn_denoising.pyFile · 0.90
test_xdawnFunction · 0.90
test_xdawn_picksFunction · 0.90
test_xdawn_fitFunction · 0.90
test_XdawnTransformerFunction · 0.90

Calls

no outgoing calls

Tested by 7

test_xdawnFunction · 0.72
test_xdawn_picksFunction · 0.72
test_xdawn_fitFunction · 0.72
test_XdawnTransformerFunction · 0.72