mne.simulation.
simulate_sparse_stc
(src, n_dipoles, times, data_fun=<function <lambda>>, labels=None, random_state=None, location=’random’, subject=None, subjects_dir=None, surf=’sphere’)[source]¶Generate sparse (n_dipoles) sources time courses from data_fun.
This function randomly selects n_dipoles
vertices in the whole
cortex or one single vertex (randomly in or in the center of) each
label if labels is not None
. It uses data_fun
to generate
waveforms for each vertex.
Parameters: | src : instance of SourceSpaces
n_dipoles : int
times : array
data_fun : callable
labels : None | list of Labels
random_state : None | int | np.random.RandomState
location : str
subject : string | None
subjects_dir : str, or None
surf : str
|
---|---|
Returns: | stc : SourceEstimate
|
See also
Notes
New in version 0.10.0.