# `Spatex.Dynamics.TauLocalNeighbor`
[🔗](https://github.com/CountlinkX-Solutions/spatex/blob/v0.2.1/lib/spatex/dynamics/rank.ex#L111)

Result of `Spatex.Dynamics.tau_local_neighbor/4` (`giddy.rank.Tau_Local_Neighbor`).

  * `tau_ln` - mean concordance of every site with its neighbors (`:nan` for islands);
    `sign` its sign (`1` or `-1`, `1` for 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)` and `sim` the `n x P`
    simulations; `nil` without permutations (`sim` also with `keep_simulations: false`).
    With `keep_simulations: :tensor`, `sim` is an `Nx.Tensor` of type `{:f, 64}` and shape
    `{n, permutations}` instead of nested lists.

# `t`

```elixir
@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()]
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
