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)
Insight Configuration
To use this Algorithm, 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 Algorithm required inputs.
Here is the list of inputs required by this Algorithm.
INPUTS | |
---|---|
Metrics | The metrics and weights on which perform the weighted average. Type: KEY_VALUE | Mandatory |
Here is the list of outputs provided by this Algorithm.
OUTPUTS | |
---|---|
Weighted Average | The weighted average. Type: FLOAT |
Comments
0 comments
Please sign in to leave a comment.