bionet.utils.band_limited.gen_band_limited

bionet.utils.band_limited.gen_band_limited(dur, dt, fmax, np=None, nc=3)

Generate a uniformly sampled, band-limited signal.

Parameters:

dur : float

Duration of signal (s).

dt : float

Sampling resolution; the sampling frequency is 1/dt Hz.

fmax : float

Maximum frequency (Hz).

np : float

Noise power. If np != None, Gaussian white noise is added to the generated signal before the latter is filtered.

nc : int

Number of discrete frequency components in generated signal.

Returns:

u : ndarray of floats

Generated signal.