pygeoda.queen_weights

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

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

Parameters
  • geoda_obj (geoda) – An instance of Geoda object

  • order (int, optional) – An integer value of order of contiguity

  • include_lower_order (bool, optional) – A bool flag indicates whether or not the lower order neighbors should be included in the weights structure. Defaults to False.

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

Returns

An instance of Weight class

Return type

Weight