spacenet.point_patterns#
Pair correlation functions#
Computes the pair correlation function (PCF) or cross-pair correlation function (cross-PCF) for nodes in a spatial network. |
|
Computes the weighted pair correlation function between two populations of nodes. |
|
Compute the cross weighted pair correlation function between two populations of objects (A and B) on a spatial network, where the contributions of each object to the pair correlation function are weighted by a kernel function based on their marker levels. |
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. |
|
Computes the integrated polynomial kernel function for given distances and bandwidth parameters. |
|
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. |