# `Monty.Frameworks.Models.Salience.Strategies.Vocus2.WeightedSum`
[🔗](https://github.com/d-led/ex.tbp.monty/blob/v0.1.0/packages/ex_tbp_monty_core/lib/monty/frameworks/models/salience/strategies/vocus2/weighted_sum.ex#L1)

Adds the feature maps up, each scaled by its weight.

Mirrors
`tbp/monty/frameworks/models/salience/strategies/vocus2/vocus2.py::WeightedSum`.
A weight of zero silences a channel without having to reconfigure the strategy
that produced it.

Note the difference from `WeightedMean`: this one does not renormalise, so a
config's weights set the overall scale of the salience map as well as the
relative importance of the channels.

# `t`

```elixir
@type t() :: %Monty.Frameworks.Models.Salience.Strategies.Vocus2.WeightedSum{
  weights: %{optional(String.t()) =&gt; number()}
}
```

# `new`

```elixir
@spec new(%{optional(String.t()) =&gt; number()}) :: t()
```

---

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