# `Spatex.ESDA.Geary`
[🔗](https://github.com/CountlinkX-Solutions/spatex/blob/v0.2.1/lib/spatex/esda/geary.ex#L1)

Result of `Spatex.ESDA.geary/3`: global Geary's C with analytic and permutation inference.
Field names are PySAL's `esda.Geary` attributes in snake_case (`seC_norm` is `se_c_norm`).

Inference is one-tailed, as in esda. Simulation fields (`sim`, `p_sim`, `ec_sim`,
`se_c_sim`, `vc_sim`, `z_sim`, `p_z_sim`, `seed`) are `nil` when `permutations: 0`; `sim` is
also `nil` with `keep_simulations: false`. Non-finite values (for example `vc_rand` when
`n < 4`) are the atoms `:nan`, `:infinity` and `:neg_infinity`.

With `keep_simulations: :tensor`, `sim` is an `Nx.Tensor` of type `{:f, 64}` and shape
`{permutations}` instead of a list.

# `t`

```elixir
@type t() :: %Spatex.ESDA.Geary{
  c: value(),
  ec: value(),
  ec_sim: value() | nil,
  n: pos_integer(),
  p_norm: value(),
  p_rand: value(),
  p_sim: float() | nil,
  p_z_sim: value() | nil,
  permutations: non_neg_integer(),
  se_c_norm: value(),
  se_c_rand: value(),
  se_c_sim: value() | nil,
  seed: non_neg_integer() | nil,
  sim: [float()] | Nx.Tensor.t() | nil,
  vc_norm: value(),
  vc_rand: value(),
  vc_sim: value() | nil,
  z_norm: value(),
  z_rand: value(),
  z_sim: value() | nil
}
```

# `value`

```elixir
@type value() :: float() | :nan | :infinity | :neg_infinity
```

---

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