osl_dynamics.models.sc_dynemo#
Single-channel Dynamic Network Modes (SC-DyNeMo).
Classes#
Module Contents#
- class osl_dynamics.models.sc_dynemo.Config[source]#
Bases:
osl_dynamics.models.dynemo.ConfigAdditional parameters for SC-DyNeMo.
- Parameters:
sampling_frequency (float) – The sampling frequency of the data (Hz).
frequency_range (tuple[float, float]) – Limits for the frequency parameter. Upper limit should not be higher than the Nyquist frequency.
- class osl_dynamics.models.sc_dynemo.Model(config)[source]#
Bases:
osl_dynamics.models.dynemo.ModelSingle-channel Dynamic Network Modes (SC-DyNeMo).
This model is a single-channel version of DyNeMo. It should only be used for single-channel data which has been time-embedded.
This model parameterises the covariance matrice for each model assuming a stochastic oscillators.
The parameters are the amplitude (\(A\)), frequency (\(f\)), and variance of added Gaussian noise (\(\sigma^2\)) of oscillators. The parameters define the auto-covariance matrix as:
\[C_{ij} = \frac{1}{2} A^2 \cos(2 \pi f \Delta t) + \delta_{ij} \sigma^2\]- Parameters:
config (Config) – The model configuration.
- get_amplitude()[source]#
Get the amplitude of the oscillators.
- Returns:
amplitude – The amplitude of the oscillators.
- Return type:
np.ndarray
- get_frequency()[source]#
Get the frequencies of the oscillators.
- Returns:
frequency – The frequencies of the oscillators.
- Return type:
np.ndarray