neurodsp.sim.cycles.sim_skewed_gaussian_cycle¶
- neurodsp.sim.cycles.sim_skewed_gaussian_cycle(n_seconds, fs, center, std, alpha, height=1)[source]¶
Simulate a cycle of a skewed gaussian.
- Parameters
- n_secondsfloat
Length of cycle window in seconds.
- fsfloat
Sampling frequency of the cycle simulation.
- centerfloat
The center of the skewed gaussian.
- stdfloat
Standard deviation of the gaussian kernel, in seconds.
- alphafloat
Magnitude and direction of the skew.
- heightfloat, optional, default: 1.
Maximum value of the cycle.
- Returns
- cycle1d array
Output values for skewed gaussian function.
Examples
Simulate a 2 Hz asymmetric sine cycle:
>>> cycle = sim_skewed_gaussian_cycle(n_seconds=0.5, fs=500, center=0.25, ... std=0.25, alpha=2.5, height=1)