mne_hfo.simulate.simulate_spike#

mne_hfo.simulate.simulate_spike(fs=5000, dur=None, random_state=None)[source]#

Create a simple gaussian spike.

Parameters:
fsfloat

Sampling rate (default=5000).

durfloat

Spike duration in seconds.

random_stateNone | int | instance of RandomState

If random_state is an int, it will be used as a seed for RandomState. If None, the seed will be obtained from the operating system (see RandomState for details). Default is None.

Returns:
spikenp.ndarray

1D numpy array with a spike.