replay_trajectory_classification.environments.order_boundary#
- order_boundary(boundary: ndarray) ndarray[source]#
Given boundary bin centers, orders them in a way to make a continuous line.
https://stackoverflow.com/questions/37742358/sorting-points-to-form-a-continuous-line
- Parameters:
boundary (np.ndarray, shape (n_boundary_points, n_position_dims))
- Returns:
ordered_boundary
- Return type:
np.ndarray, shape (n_boundary_points, n_position_dims)