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

Class EvokedArray

mne/evoked.py:1410–1503  ·  view source on GitHub ↗

Evoked object from numpy array. Parameters ---------- data : array of shape (n_channels, n_times) The channels' evoked response. See notes for proper units of measure. %(info_not_none)s Consider using :func:`mne.create_info` to populate this structure. tmin : flo

Source from the content-addressed store, hash-verified

1408
1409@fill_doc
1410class EvokedArray(Evoked):
1411 """Evoked object from numpy array.
1412
1413 Parameters
1414 ----------
1415 data : array of shape (n_channels, n_times)
1416 The channels' evoked response. See notes for proper units of measure.
1417 %(info_not_none)s Consider using :func:`mne.create_info` to populate this
1418 structure.
1419 tmin : float
1420 Start time before event. Defaults to 0.
1421 comment : str
1422 Comment on dataset. Can be the condition. Defaults to ''.
1423 nave : int
1424 Number of averaged epochs. Defaults to 1.
1425 kind : str
1426 Type of data, either average or standard_error. Defaults to 'average'.
1427 %(baseline_evoked)s
1428 Defaults to ``None``, i.e. no baseline correction.
1429
1430 .. versionadded:: 0.23
1431 %(verbose)s
1432
1433 See Also
1434 --------
1435 EpochsArray, io.RawArray, create_info
1436
1437 Notes
1438 -----
1439 Proper units of measure:
1440
1441 * V: eeg, eog, seeg, dbs, emg, ecg, bio, ecog
1442 * T: mag
1443 * T/m: grad
1444 * M: hbo, hbr
1445 * Am: dipole
1446 * AU: misc
1447 """
1448
1449 @verbose
1450 def __init__(
1451 self,
1452 data,
1453 info,
1454 tmin=0.0,
1455 comment="",
1456 nave=1,
1457 kind="average",
1458 baseline=None,
1459 *,
1460 verbose=None,
1461 ):
1462 dtype = np.complex128 if np.iscomplexobj(data) else np.float64
1463 data = np.asanyarray(data, dtype=dtype)
1464
1465 if data.ndim != 2:
1466 raise ValueError(
1467 "Data must be a 2D array of shape (n_channels, n_samples), got shape "

Callers 15

ems_filtering.pyFile · 0.90
evoked_csd_sphereFunction · 0.90
test_ica_additionalFunction · 0.90
_compare_inverses_approxFunction · 0.90
test_apply_inverse_tfrFunction · 0.90
test_inverse_mixed_looseFunction · 0.90
test_make_inverse_no_megFunction · 0.90
test_equalize_channelsFunction · 0.90
test_stc_near_sensorsFunction · 0.90
test_decimFunction · 0.90

Calls

no outgoing calls

Tested by 15

evoked_csd_sphereFunction · 0.72
test_ica_additionalFunction · 0.72
_compare_inverses_approxFunction · 0.72
test_apply_inverse_tfrFunction · 0.72
test_inverse_mixed_looseFunction · 0.72
test_make_inverse_no_megFunction · 0.72
test_equalize_channelsFunction · 0.72
test_stc_near_sensorsFunction · 0.72
test_decimFunction · 0.72
test_arithmeticFunction · 0.72