This Algorithm calculates the weighted average given the input metrics and weights.
Each input value is multiplied by its respective weight, the products are then summed and divided by the sum of the weights.
Mathematically, it can be represented as:
(M1 x W1 + M2 x W2 + ... + Mn x Wn) / (W1 + W2 + ... + Wn)
Inputs
Here is the list of inputs required by this Algorithm.
INPUTS | |
---|---|
Metrics | The metrics and weights on which perform the weighted average.
|
Outputs
Here is the list of outputs provided by this Algorithm.
OUTPUTS | |
---|---|
Weighted Average | The weighted average.
|
Insight Metric Configuration
To use this Algorithm in an Insight Metric, you need to:
Go to the Insight / Insight Metrics page.
Select the Thing Definitions tab.
Select the Thing Definition where to create the insight metric.
Click the Add Metric button.
Select the Weighted Average algorithm.
Configure the required inputs.