WeightedSum

Description

Calculate weighted sum of arrays.

Arguments

2) weights — vector of weights’ names, empty or of size \(N\). 1) inputs — vector of inputs’ names of size \(N\).

Inputs

  1. sum.name1 — Array \(A_1\).

  2. sum.name2\(A_2\).

  1. sum.nameN — Array \(A_N\).

All arrays are of the same size.

Variables

The transformation depends on \(N\) weighting variables \(\omega_i\). Variable names are read from weights.

Outputs

  1. 'sum.sum' — weighted sum \(S\).

Implementation

The transformation implements a sum

\[S = \sum_{i=1}^{N} \omega_i A_i,\]

where weights \(\omega_i\) are predefined variables.