Result of Spatex.Dynamics.tau_local_neighbor/4 (giddy.rank.Tau_Local_Neighbor).
tau_ln- mean concordance of every site with its neighbors (:nanfor islands);signits sign (1or-1,1for zero and islands, as in giddy).weights-|N(i)| / s0, the site's share of the (binary) joins.p_sim-(min(#sim >= obs, #sim <= obs) + 1) / (P + 1)andsimthen x Psimulations;nilwithout permutations (simalso withkeep_simulations: false). Withkeep_simulations: :tensor,simis anNx.Tensorof type{:f, 64}and shape{n, permutations}instead of nested lists.
Summary
Types
@type t() :: %Spatex.Dynamics.TauLocalNeighbor{ ids: [term()], n: pos_integer(), p_sim: [float() | :nan] | nil, permutations: non_neg_integer(), seed: non_neg_integer() | nil, sign: [integer()], sim: [[float() | :nan]] | Nx.Tensor.t() | nil, tau_ln: [float() | :nan], weights: [float()] }