pygeoda API reference¶
pygeoda (I/O)¶
|
Create a geoda object by reading a spatial dataset: either ESRI Shapefile or GeoPandas object. |
|
A wrapper class of GeoDa class from libgeoda created from ESRI Shapefile |
pygeoda.weights¶
|
GeoDa Weight class |
|
Queen Contiguity Spatial Weights Create a Queen contiguity weights with options of “order”, “include lower order” and “precision threshold” |
|
Rook Contiguity Spatial Weights Create a Rook contiguity weights with options of “order”, “include lower order” and “precision threshold” |
|
Minimum Distance Threshold for Distance-based Weights Get minimum threshold of distance that makes sure each observation has at least one neighbor |
|
Distance-based Spatial Weights Create a distance-based weights |
|
K-Nearest Neighbors-based Spatial Weights Create a k-nearest neighbors based spatial weights |
|
Distance-based Kernel Spatial Weights Create a kernel weights by specifying a bandwidth and a kernel method |
|
K-NN Kernel Spatial Weights Create a kernel weights by specifying k-nearest neighbors and a kernel method |
pygeoda (LISA)¶
|
A LISA class wrappers the results of LISA computation |
|
Local Moran statistics. |
|
Bivariate local Moran statistics. |
|
Local Geary Statistics |
|
Local Multivariate Geary Statistics |
|
Local Join Count Statistics |
|
Bivariate Local Join Count Statistics |
|
(Multivariate) Colocation Local Join Count Statistics |
|
Local Getis-Ord’s G Statistics |
|
Local Getis-Ord’s G* Statistics The function to apply Getis-Ord’s local G* statistics |
|
Quantile LISA Statistics The function to apply quantile LISA statistics |
|
Multivariate Quantile LISA Statistics The function to apply multivariate quantile LISA statistics |
|
Local Neighbor Match Test The local neighbor match test is to assess the extent of overlap between k-nearest neighbors in geographical space and k-nearest neighbors in multi-attribute space. |
|
A BatchLISA class wrappers the results of LISA computations |
|
Apply local moran statistics on a set of variables |
pygeoda (spatial clustering)¶
|
Spatial C(K)luster Analysis by Tree Edge Removal |
|
Regionalization with dynamically constrained agglomerative clustering and partitioning (REDCAP) |
|
Spatially Constrained Hierarchical Clucstering (SCHC) |
|
A greedy algorithm to solve the AZP problem |
|
A simulated annealing algorithm to solve the AZP problem |
|
A tabu-search algorithm to solve the AZP problem |
|
A greedy algorithm to solve the max-p-region problem |
|
A simulated annealing algorithm to solve the max-p-region problem |
|
A tabu-search algorithm to solve the max-p-region problem |
|
Spatial Validation Spatial validation provides a collection of validation measures including (1) fragmentations (entropy, simpson), (2) join count ratio, (3) compactness - isoperimeter quotient and (4) diameter. |
|
Fragmentation measure of spatial validation |
|
Diameter Measure |
|
Compactness Measure |
Join Count Ratio |
|
|
Spatial Validation Result |
|
Make spatially constrained clusters Make spatially constrained clusters from non-spatially constrained clusters |
pygeoda (classify)¶
|
(Box) Hinge15 Breaks |
|
(Box) Hinge30 Breaks |
|
Natural Breaks (Jenks) |
|
Quantile breaks |
|
Percentile breaks |
|
Standard deviation breaks |
pygeoda (data)¶
|
Demean Standardization |
|
Standardization (Z) |
|
Median Absolute Deviation |