biophysics_fittingephysSTEP_mean_frequency

STEP_mean_frequency

biophysics_fitting.ephys.STEP_mean_frequency(t, v, stim_duration=2000, thresh=None)

Computes the mean frequency of action potentials in a voltage trace for a step stimulus.

Parameters:
  • t (numpy.ndarray) – Array of time values.

  • v (numpy.ndarray) – Array of voltage values.

  • thresh (float, optional) – Voltage threshold for spike detection. Defaults to None.

Returns:

Mean frequency of action potentials in the voltage trace.

Return type:

float