WeightedSum

This function computes the normalized weighted sum of a list of numbers.

Description

The normalized weighted sum of a list of numbers.

Type

NUMERIC

Arguments

Type

Meaning

1

LIST
{NUMERIC}

the values to be summed

2

LIST
{NUMERIC}

the weights of the values

Evaluation

The following mathematical expression is computed and returned.

Mathematical Expression

 

 

 

 

Comments

All values must have the same dimensionality but may have different units (e.g., all values could be flows, but some in units of cms and others in cfs). Similarly, all weights must have the same dimensionality. Currently, if the dimensionality of the values or weights involves temperature, then all items in that list must have identical units (e.g., it would not be permitted for some values to have units of Celsius/meter and others to have units of Fahrenheit/meter).

 
WeightedSum({2.0 [m], 13.12 [ft]}, {0.5, 0.5})
 
= 2.99 [m]