linear_trend#
- syncopy.synthdata.linear_trend(y_max, nSamples=1000, nChannels=2, nTrials=100)[source]#
A linear trend on all channels from 0 to y_max in nSamples.
- Parameters:
y_max (float) – Ordinate value at the last sample, slope is then given by samplerate * y_max / nSamples
nSamples (int) – Number of samples per trial
nChannels (int) – Number of channels
nTrials (int or None) – Number of trials for the returned
AnalogData
object. When set to None a single-trialndarray
is returned.
- Returns:
trend
- Return type:
syncopy.AnalogData
or numpy.ndarray