libpysal.cg.
Grid
(bounds, resolution)[source]¶Representation of a binning data structure.
Methods
|
Adds an item to the grid at a specified location. |
|
Returns a list of items found in the grid within the bounds specified. |
|
Returns whether a 2-tuple location _loc_ lies inside the grid bounds. |
|
Returns the nearest item to a point. |
|
Returns a list of items found in the grid within a specified distance of a point. |
|
Removes an item from the grid at a specified location. |
__init__
(self, bounds, resolution)[source]¶Returns a grid with specified properties.
__init__(Rectangle, number) -> Grid
Examples
TODO: complete this doctest >>> g = Grid(Rectangle(0, 0, 10, 10), 1)
Methods
|
Returns a grid with specified properties. |
|
Adds an item to the grid at a specified location. |
|
Returns a list of items found in the grid within the bounds specified. |
|
Returns whether a 2-tuple location _loc_ lies inside the grid bounds. |
|
Returns the nearest item to a point. |
|
Returns a list of items found in the grid within a specified distance of a point. |
|
Removes an item from the grid at a specified location. |