meegsim.configuration.SourceConfiguration#
- class meegsim.configuration.SourceConfiguration(src, sfreq, duration, random_state=None)[source]#
This class describes a simulated configuration of sources of brain activity and noise.
- Attributes:
- src
SourceSpaces Source spaces object that stores all candidate source locations.
- sfreq
float Sampling frequency of the simulated data, in Hz.
- duration
float Length of the simulated data, in seconds.
- random_state
intorNone, optional Random state that was used to generate the configuration.
- src
Methods
to_raw(fwd, info[, scaling_factor])Project the activity of all simulated sources to sensor space.
to_stc()Obtain an
stcobject that contains data from all sources in the configuration.- to_raw(fwd, info, scaling_factor=1e-06)[source]#
Project the activity of all simulated sources to sensor space.
- Parameters:
- Returns:
- raw
Raw The simulated sensor space data.
- raw
- to_stc()[source]#
Obtain an
stcobject that contains data from all sources in the configuration.- Returns:
- stc
SourceEstimate The resulting stc object that contains data from all sources.
- stc