# `Spatex.GWR.SpatialVariability`
[🔗](https://github.com/CountlinkX-Solutions/spatex/blob/v0.2.1/lib/spatex/gwr/spatial_variability.ex#L1)

Result of `Spatex.GWR.spatial_variability/4` (`GWRResults.spatial_variability` in mgwr).

  * `p_values` - one pseudo p-value per coefficient surface (intercept first when the model has
    one): the share of permutations whose standard deviation of the surface exceeds the
    observed one, `count(sd_sim > sd_obs) / permutations` (mgwr's rule, no `+ 1` correction).
    A small value means the surface varies in space more than chance would.
  * `observed_sd` - the standard deviation (`ddof = 0`) of each observed coefficient surface.
  * `simulated_sd` - the standard deviations of the permuted fits, `permutations` rows of `k`
    values (a list of lists, an `{permutations, k}` `Nx.Tensor` with `keep_simulations:
    :tensor`, or `nil` with `keep_simulations: false`).
  * `bw` - the bandwidth selected for the observed data (the permuted fits select their own).
  * `permutations`, `seed` - the number of permutations and the seed that reproduces them.
  * `n`, `k`, `constant` - the model that was tested.

# `t`

```elixir
@type t() :: %Spatex.GWR.SpatialVariability{
  bw: pos_integer() | float() | :infinity,
  constant: boolean(),
  k: pos_integer(),
  n: pos_integer(),
  observed_sd: [float()],
  p_values: [float()],
  permutations: pos_integer(),
  seed: non_neg_integer(),
  simulated_sd: [[float()]] | Nx.Tensor.t() | nil
}
```

---

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