statistics
This module contains functions to perform spatial statistics calculations.
GETIS_ORD_QUADBIN
Description
This function computes the Getis-Ord Gi* statistic for each Quadbin index in the input array.
input
:SUPER
input data with the indexes and values of the cells.size
:INT8
size of the Quadbin k-ring (distance from the origin). This defines the area around each index cell that will be taken into account to compute its Gi* statistic.kernel
:VARCHAR
kernel function to compute the spatial weights across the kring. Available functions are: uniform, triangular, quadratic, quartic and gaussian.
Return type
SUPER
Example
MORANS_I_QUADBIN
Description
This function computes the Moran's I spatial autocorrelation from the input array of quadkey indexes.
input
:SUPER
input data with the indexes and values of the cells.size
:INT8
size of the quadkey k-ring (distance from the origin). This defines the area around each index cell where the distance decay will be applied.decay
:VARCHAR
decay function to compute the distance decay. Available functions are: uniform, inverse, inverse_square and exponential.
Return type
FLOAT8
Example
P_VALUE
Description
This function computes the p-value (two-tails test) of a given z-score assuming the population follows a normal distribution where the mean is 0 and the standard deviation is 1. The z-score is a measure of how many standard deviations below or above the population mean a value is. It gives you an idea of how far from the mean a data point is. The p-value is the probability that a randomly sampled point has a value at least as extreme as the point whose z-score is being tested.
z_score
:FLOAT8
input data with the indexes and values of the cells.
Return type
FLOAT8
Example
Last updated