segregation.singlegroup.ConProf¶
- class segregation.singlegroup.ConProf(data, group_pop_var, total_pop_var, w=None, network=None, distance=None, decay=None, function='triangular', precompute=None, **kwargs)[source]¶
ConProf 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.KernelW
,optional
lipysal spatial kernel weights object used to define an egohood
- network
pandana.Network
pandana Network object representing the study area
- distance
int
Maximum distance (in units of geodataframe CRS) to consider the extent of the egohood
- decay
str
type of decay function to apply. Options include
- precomputebool
Whether to precompute the pandana Network object
- 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].
- __init__(data, group_pop_var, total_pop_var, w=None, network=None, distance=None, decay=None, function='triangular', precompute=None, **kwargs)[source]¶
Init.
Methods
__init__
(data, group_pop_var, total_pop_var)Init.
plot
()Plot the Concentration Profile.