brainpy.inputs.square_input

Contents

brainpy.inputs.square_input#

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

Oscillatory square input.

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

  • frequency (float) – Frequency of the square 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).