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

Result of `Spatex.Dynamics.theta/3` (`giddy.rank.Theta`): the share of rank changes that move
in the same direction within regimes, per interval (`t - 1` values).

`ranks` are the per-period ranks (average ties), `total` the absolute rank changes per
interval, `max_total` their theoretical maximum. `pvalue_left`, `pvalue_right` and `z` come from
permuting the regimes and are `nil` with `permutations: 0`.

# `t`

```elixir
@type t() :: %Spatex.Dynamics.Theta{
  max_total: float(),
  permutations: non_neg_integer(),
  pvalue_left: [float()] | nil,
  pvalue_right: [float()] | nil,
  ranks: [[float()]],
  regimes: [term()],
  seed: non_neg_integer() | nil,
  theta: [float() | :nan],
  total: [float()],
  z: [float() | :nan] | nil
}
```

---

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