data_base ❭ db_initializers ❭ prepare_ANN_batches ❭ compute_ISI_array
compute_ISI_array¶
-
data_base.db_initializers.prepare_ANN_batches.compute_ISI_array(st, min_time, max_time, fillna=
1000, step=1)¶ Calculate the time since the last spike in ms for each element in a spike time Array.
Given an array of spike times, this method returns a list of size
(max\_time - min\_time)//time\_step, where each time step gives the amount of time since the last spike in ms.- Parameters:¶
st (pd.DataFrame | pd.Series) – pandas DataFrame or Series of spike times
timepoint (int) – Time point in ms
fillna (int, optional) – Fill with NaN until the array has this length. Defaults to None.
- Returns:¶
A pandas Series of inter-spike intervals in ms.
- Return type:¶
pd.Series
See also
compute_ISI_from_st_list()for the list version.compute_ISI_from_st()for the pandas version.