spacenet.point_patterns#
Pair correlation functions#
Compute the network-based pair correlation function (netPCF) or cross-pair correlation function (cross-netPCF) for populations of nodes embedded in a spatial network. |
|
Compute the weighted network-based pair correlation function (weighted-netPCF) between a reference population of nodes and a population of nodes with continuous marks. |
|
Compute the dual-weighted network-based pair correlation function (dual-weighted netPCF) between two populations of nodes with continuous marks. |
Correlation helper functions#
Compute the 95% confidence interval for the pair correlation function at each radius (and target marker, if applicable) using method of spatial bootstrap on spatial networks. |
|
Computes the polynomial kernel function for a given distance or array of distances. |
|
Nearest-endpoint Gaussian weighted polynomial kernel integration for localised accessible space normalisation. |
|
A helper function to check if the network is connected and filter to the largest connected component if not. |
|
Computes the local contributions to the pair correlation function for a given reference node (object_id_A) and a set of target nodes (object_indices_B) at specified radii (r). |
|
Compute the local contributions to the pair correlation function for a given reference node (object_id_A) and a set of target nodes (object_indices_B) at specified radii (r), weighted by marker contributions. |
|
Runs the compute_contributions function in parallel across multiple CPU cores for a list of object indices. |
|
Computes the local contributions to the pair correlation function for a list of reference nodes (object_indices_A) and a set of target nodes (object_indices_B) at specified radii (r), weighted by marker contributions, in parallel across multiple CPU cores. |