Weighted Average

Pure
WeightedAverage

Calculates the weighted average of an array of values with corresponding weights.

Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric

Inputs

NameTypeDefaultDescription
ValuesTArray<float>Values parameter
WeightsTArray<float>Weights parameter

Outputs

NameTypeDescription
ReturnValuefloatReturnValue output

Example Use Cases

Example 1

Calculate overall score from categories with different importance.

Example 2

Blend multiple AI evaluations with confidence weights.