Result of Spatex.ESDA.geary_local/3: local Geary (esda.Geary_Local, Anselin 1995).
Every per-site field is a list aligned with the graph's node order (ids). Field names are
PySAL's attributes in snake_case (localG is local_g, rlocalG is sim).
With keep_simulations: :tensor, sim is an Nx.Tensor of type {:f, 64} and shape
{n, permutations} instead of nested lists.
local_g-sum_j w_ij (z_i - z_j)^2over the row-standardized graph and the standardized values (ddof 0). Small values mean similarity with the neighbors.p_sim- pseudo p-value of the conditional randomization (see the:alternativeoption);sim- the simulated statistics, one list ofpermutationsvalues per site. Both arenilwithpermutations: 0;simis alsonilwithkeep_simulations: false.labs- only withlabels: true:1outlier,2cluster,3other,4not significant atsig,nilwhere no rule applies (a tie with the mean).
Islands keep their place in the output with local_g 0 (esda drops them from localG and
misaligns it with p_sim) and, as in esda, the smallest possible p_sim,
1 / (permutations + 1).
Summary
Types
@type t() :: %Spatex.ESDA.GearyLocal{ alternative: atom(), ids: [term()] | nil, labs: [1..4 | nil] | nil, local_g: [float()], n: pos_integer(), p_sim: [float()] | nil, permutations: non_neg_integer(), seed: non_neg_integer() | nil, sig: float(), sim: [[float()]] | Nx.Tensor.t() | nil }