mne_hfo.simulate.simulate_spike#
- mne_hfo.simulate.simulate_spike(fs=5000, dur=None, random_state=None)[source]#
Create a simple gaussian spike.
- Parameters:
- fs
float Sampling rate (default=5000).
- dur
float Spike duration in seconds.
- random_state
None|int| instance ofRandomState If
random_stateis anint, it will be used as a seed forRandomState. IfNone, the seed will be obtained from the operating system (seeRandomStatefor details). Default isNone.
- fs
- Returns:
- spike
np.ndarray 1D numpy array with a spike.
- spike