brainpy.inputs.ramp_input

Contents

brainpy.inputs.ramp_input#

brainpy.inputs.ramp_input(c_start, c_end, duration, t_start=0, t_end=None, dt=None)[source]#

Get the gradually changed input current.

Parameters:
  • c_start (float) – The minimum (or maximum) current size.

  • c_end (float) – The maximum (or minimum) current size.

  • duration (int, float) – The total duration.

  • t_start (float) – The ramped current start time-point.

  • t_end (float) – The ramped current end time-point. Default is the None.

  • dt (float, int, optional) – The numerical precision.

Returns:

current – The formatted current

Return type:

bm.ndarray