esda.Spatial_Pearson¶
-
class
esda.
Spatial_Pearson
(connectivity=None, permutations=999)[source]¶ Global Spatial Pearson Statistic
-
__init__
(self, connectivity=None, permutations=999)[source]¶ Initialize a spatial pearson estimator
- Attributes
- association_: numpy.ndarray (2,2)
array containg the estimated Lee spatial pearson correlation coefficients, where element [0,1] is the spatial correlation coefficient, and elements [0,0] and [1,1] are the “spatial smoothing factor”
- reference_distribution_: numpy.ndarray (n_permutations, 2,2)
distribution of correlation matrices for randomly-shuffled maps.
- significance_: numpy.ndarray (2,2)
permutation-based p-values for the fraction of times the observed correlation was more extreme than the simulated correlations.
Methods
__init__
(self[, connectivity, permutations])Initialize a spatial pearson estimator
fit
(self, x, y)bivariate spatial pearson’s R based on Eq.
get_params
(self[, deep])Get parameters for this estimator.
set_params
(self, \*\*params)Set the parameters of this estimator.
-