segregation.local.LocalRelativeCentralization¶
- class segregation.local.LocalRelativeCentralization(data, group_pop_var=None, total_pop_var=None, w=None, network=None, distance=None, decay=None, precompute=None, groups=None)[source]¶
Multigroup Local Simpson’s Concentration Index.
- Parameters:
- data
pandas.DataFrame
orgeopandas.GeoDataFrame
,required
dataframe or geodataframe if spatial index holding data for location of interest
- groups
list
,required
list of columns on dataframe holding population totals for each group
- w
libpysal.W
,optional
lipysal spatial weights object used to define a local neighborhood. If none is passed, a KNN ojbect with k=5 will be used
- 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 Folch, David C., and Sergio J. Rey. “The centralization index: A measure of local spatial segregation.” Papers in Regional Science 95.3 (2016): 555-576.
Reference: [Folch and Rey, 2016].
- __init__(data, group_pop_var=None, total_pop_var=None, w=None, network=None, distance=None, decay=None, precompute=None, groups=None)[source]¶
Init.
Methods
__init__
(data[, group_pop_var, ...])Init.