meegsim.waveform.narrowband_oscillation#
- meegsim.waveform.narrowband_oscillation(n_series, times, *, fmin=None, fmax=None, order=2, random_state=None)[source]#
Generate oscillatory-like time series by filtering white noise in a requested frequency band.
- Parameters:
- n_series
int The number of time series to generate.
- times
array Array of time points (each one represents time in seconds).
- fmin
None(default) orfloat Lower cutoff frequency (in Hz). If None (default), 8 Hz are used as the cutoff.
- fmax
None(default) orfloat Upper cutoff frequency (in Hz). If None (default), 12 Hz are used as the cutoff.
- order
int, optional The order of the filter. By default, the order is equal to 2.
- random_state
None(default) orint Seed for the random number generator. If None (default), results will vary between function calls. Use a fixed value for reproducibility.
- n_series
- Returns:
- out
array, shape (n_series, n_times) Generated filtered white noise.
- out
Examples using meegsim.waveform.narrowband_oscillation#
Phase-phase coupling based on von Mises distribution
Phase-phase coupling based on von Mises distribution
Phase-phase coupling using shifted copy with noise
Phase-phase coupling using shifted copy with noise