pygeoda.rook_weights

pygeoda.rook_weights(geoda_obj, **kwargs)[source]

Rook Contiguity Spatial Weights Create a Rook contiguity weights with options of “order”, “include lower order” and “precision threshold”

Parameters
  • geoda_obj (geoda) – An instance of geoda class

  • order (int, optional) – order of contiguity

  • include_lower_order (bool, optional) – whether or not the lower order neighbors should be included in the weights structure

  • precision_threshold (float, optional) – the precision of the underlying shape file is insufficient to allow for an exact match of coordinates to determine which polygons are neighbors

Returns

An instance of Weight object

Return type

Weight