brainpy.inputs.sinusoidal_input

brainpy.inputs.sinusoidal_input#

brainpy.inputs.sinusoidal_input(amplitude, frequency, duration, dt=None, t_start=0.0, t_end=None, bias=False)[source]#

Sinusoidal input.

Parameters:
  • amplitude (float) – Amplitude of the sinusoid.

  • frequency (float) – Frequency of the sinus oscillation, in Hz

  • duration (float) – The input duration.

  • t_start (float) – The start time.

  • t_end (float) – The end time.

  • dt (float) – The numerical precision.

  • bias (bool) – Whether the sinusoid oscillates around 0 (False), or has a positive DC bias, thus non-negative (True).