API reference¶
A-DBSCAN¶
|
A-DBSCAN, as introduced in [Arribas-Bel et al., 2021]. |
Correlogram¶
|
Generate a spatial correlogram |
Gamma Statistic¶
|
Gamma index for spatial autocorrelation |
Geary Statistics¶
|
Global Geary C Autocorrelation statistic |
|
Local Geary - Univariate |
|
Local Geary - Multivariate |
Getis-Ord Statistics¶
|
Global G Autocorrelation Statistic |
|
Generalized Local G Autocorrelation |
Inspection plots¶
|
Combine local statistics into a G-I-LOSH cross plot. |
Join Count Statistics¶
|
Binary Join Counts |
Join Count Local Statistics¶
|
Univariate Local Join Count Statistic |
|
Univariate Local Join Count Statistic |
|
Multivariate Local Join Count Statistic |
LOSH Statistics¶
|
Local spatial heteroscedasticity (LOSH) |
Map Comparison¶
|
Compute the entropy of the distribution of polygon areas. |
|
The completeness of the partitions of polygons in a to those in b. |
|
The harmonic mean summarizing the overlay entropy of two sets of polygons: a onto b and b onto a. |
|
The homogeneity of polygons from a partitioned by b. |
|
The entropy of how n zones in a are split by m partitions in b, where n is the number of polygons in a and m is the number of partitions in b. |
Mixture Smoothing¶
|
Empirical Bayesian Rate Smoother Using Mixture Prior Distributions It goes through 1) defining an initial set of subpopulations, 2) VEM algorithm to determine the number of major subpopulations, 3) EM algorithm, 4) combining simialr subpopulations, and 5) estimating EB rates from a mixture of prior distributions from subpopulation models. |
Modifiable Areal Unit Tests¶
|
S-maup: Statistical Test to Measure the Sensitivity to the Modifiable Areal Unit Problem. |
Moran Statistics¶
|
Moran's I Global Autocorrelation Statistic |
|
Bivariate Moran's I |
|
Bivariate Moran Matrix |
|
Local Moran Statistics. |
|
Bivariate Local Moran Statistics. |
|
Adjusted Moran's I Global Autocorrelation Statistic for Rate Variables [Assuncao and Reis, 1999] |
|
Adjusted Local Moran Statistics for Rate Variables [Assuncao and Reis, 1999]. |
|
Moran Facet visualization. |
|
Compute the Multivariable Local Moran statistics under partial dependence [Wolf, 2024] |
|
Fit a local moran statistic for y after regressing out the effects of confounding X on y. |
Shape Statistics¶
|
The boundary amplitude (adapted from Wang & Huang (2012)) is the length of the boundary of the convex hull divided by the length of the boundary of the original shape. |
|
ratio of the area of the convex hull to the area of the shape itself |
|
The Flaherty & Crumplin (1992) length-width measure, stated as measure LW_7 in [Altman, 1998]. |
|
Deviation of a polygon from an equivalent rectangle |
|
Computes volumetric compactness |
|
The Isoareal quotient, defined as the ratio of a polygon's perimeter to the perimeter of the equi-areal circle. |
|
The Isoperimetric quotient, defined as the ratio of a polygon's area to the area of the equi-perimeter circle. |
|
The Eig & Seitzinger (1981) shape measure, defined as: |
|
The Reock compactness measure, defined by the ratio of areas between the minimum bounding/containing circle of a shape and the shape itself. |
|
Computes the ratio of the second moment of area (like Li et al (2013)) to the moment of area of a circle with the same perimeter. |
|
Compute moment of inertia (second moment of area) per geometry. |
|
Compute moment of inertia (second moment of area) for an entire collection of geometries combined. |
|
Compute weighted moment of inertia per region. |
|
Computes the normalized moment of inertia |
|
The Flaherty & Crumplin (1992) index, OS_3 in [Altman, 1998]. |
|
Ratio of the area of the shape to the area of its minimum bounding rotated rectangle |
|
The Taylor reflexive angle index, measure OS_4 in [Altman, 1998] |
|
|
|
Compute moment of inertia (second moment of area) per geometry. |
|
Schumm’s shape index (Schumm (1956) in MacEachren 1985) |
|
Measures how different is a given shape from an equi-areal square |
Silhouette Statistics¶
|
Compute the observation-level boundary silhouette score [Wolf et al., 2019]. |
|
Compute a path silhouette for all observations [Rousseeuw, 1987, Wolf et al., 2019]. |
|
Find the nearest label in attribute space. |
|
Compute the silhouette for each edge in an adjacency graph. |
Spatial Pearson Statistics¶
|
Global Spatial Pearson Statistic |
|
Local Spatial Pearson Statistic |
Topology¶
|
Compute the isolation of each value of X by constructing the distance to the nearest higher value in the data. |
|
Return the prominence of peaks in input, given a connectivity matrix. |
Utility Functions¶
|
Calculate the p-value cut-off to control for the false discovery rate (FDR) for multiple testing. |