segregation.singlegroup.SpatialProxProf¶
- class segregation.singlegroup.SpatialProxProf(data, group_pop_var, total_pop_var, w=None, m=1000, **kwargs)[source]¶
Spatial Proximity Profile Index.
- Parameters:
- data
pandas.DataFrame
orgeopandas.GeoDataFrame
,required
dataframe or geodataframe if spatial index holding data for location of interest
- group_pop_var
str
,required
name of column on dataframe holding population totals for focal group
- total_pop_var
str
,required
name of column on dataframe holding total overall population
- w: libpysal.weights.W
pysal spatial weights object measuring connectivity between geographic units. If nNne, a Queen object will be created
- m
int
a numeric value indicating the number of thresholds to be used. Default value is 1000. A large value of m creates a smoother-looking graph and a more precise spatial proximity profile value but slows down the calculation speed.
- data
- Attributes:
Notes
Based on Hong, Seong-Yun, and Yukio Sadahiro. “Measuring geographic segregation: a graph-based approach.” Journal of Geographical Systems 16.2 (2014): 211-231.
Reference: [Hong and Sadahiro, 2014].
Methods
__init__
(data, group_pop_var, total_pop_var)Init.
plot
()Plot the Spatial Proximity Profile.