replay_trajectory_classification.environments.get_bin_ind#

get_bin_ind(sample: ndarray, edges: list[ndarray]) ndarray[source]#

Figure out which bin a given sample falls into.

Extracted from np.histogramdd.

Parameters:
  • sample (np.ndarray)

  • edges (list of np.ndarray)

Returns:

Ncount

Return type:

np.ndarray