red_noise#
- syncopy.synthdata.red_noise(alpha, nSamples=1000, nChannels=2, seed=None, nTrials=100)[source]#
Uncoupled multi-channel AR(1) process realizations. For alpha close to 1 can be used as a surrogate 1/f background.
- Parameters:
alpha (float) – Must lie within the [0, 1) interval
nSamples (int) – Number of samples per trial
nChannels (int) – Number of channels
seed (int or None) – Set to a number to get reproducible random numbers
nTrials (int or None) – Number of trials for the returned
AnalogData
object. When set to None a single-trialndarray
is returned.
- Returns:
signal
- Return type:
syncopy.AnalogData
or numpy.ndarray