# `Sidereon.SourceLocalization.Options`
[🔗](https://github.com/neilberkman/sidereon-ex/blob/main/lib/sidereon/source_localization.ex#L33)

Options for ToA or TDOA source localization.

`mode` is `:toa` or `{:tdoa, reference_sensor_index}`. Timing sigma is seconds
and controls covariance, CRLB, and influence-score scaling. `loss` is one of
`:linear`, `:huber`, `:soft_l1`, `:cauchy`, or `:arctan`; `f_scale_s` is the
residual scale in seconds for non-linear losses. Tolerances and `max_nfev`
are passed through to the trust-region solver when set.

# `loss`

```elixir
@type loss() :: :linear | :huber | :soft_l1 | :cauchy | :arctan
```

# `solve_mode`

```elixir
@type solve_mode() :: :toa | {:tdoa, non_neg_integer()}
```

# `t`

```elixir
@type t() :: %Sidereon.SourceLocalization.Options{
  f_scale_s: float(),
  ftol: float() | nil,
  gtol: float() | nil,
  loss: loss(),
  max_nfev: pos_integer() | nil,
  mode: solve_mode(),
  timing_sigma_s: float(),
  xtol: float() | nil
}
```

---

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