replay_trajectory_classification.environments#
Classes for constructing discrete grids representations of spatial environments in 1D and 2D
Functions
Calculates diffusion for a single time step given a track. |
|
For each position bin in the grid, diffuse by std. |
|
For each node, find edge_id, is_bin_edge, x_position, y_position, and linear_position. |
|
Figure out which bin a given sample falls into. |
|
Gets the spatial grid of bins. |
|
Get number of bins need to span a range given a bin size. |
|
Determines the boundary of the valid interior track bins. |
|
Figures out 1D spatial bins given a track graph. |
|
Infers the interior bins of the track given positions. |
|
Returns a 2D array of node positions corresponding to each edge. |
|
Insert the bin center and bin edge positions as nodes in the track graph. |
|
Given boundary bin centers, orders them in a way to make a continuous line. |
|
Finds the closet point on a track segment in terms of Euclidean distance |
|
Calculates diffusion of a single point over time up until it matches a Gaussian with standard deviation std. |
Classes
Represent the spatial environment with a discrete grid. |