mne.simulation.
simulate_stc
(src, labels, stc_data, tmin, tstep, value_fun=None)¶Simulate sources time courses from waveforms and labels
This function generates a source estimate with extended sources by filling the labels with the waveforms given in stc_data.
By default, the vertices within a label are assigned the same waveform. The waveforms can be scaled for each vertex by using the label values and value_fun. E.g.,
# create a source label where the values are the distance from the center labels = circular_source_labels(‘sample’, 0, 10, 0)
# sources with decaying strength (x will be the distance from the center) fun = lambda x: exp(- x / 10) stc = generate_stc(fwd, labels, stc_data, tmin, tstep, fun)
Parameters: | src : list of dict
labels : list of Labels
stc_data : array (shape: len(labels) x n_times)
tmin : float
tstep : float
value_fun : function
|
---|---|
Returns: | stc : SourceEstimate
|