replay_trajectory_classification.core.get_centers#

get_centers(bin_edges: ndarray) ndarray[source]#

Given a set of bin edges, return the center of the bin.

Parameters:

bin_edges (np.ndarray, shape (n_edges,))

Returns:

bin_centers

Return type:

np.ndarray, shape (n_edges - 1,)