Average
The mean of an array of numbers.
Node id math/average
The Average node outputs the sum of the numbers in values divided by how
many there are.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| values | Array<number> | — |
Outputs
| Name | Type | Notes |
|---|---|---|
| result | number |
Behaviour
- An array, not a multi input. Unlike Min and
Max,
valuestakes one array of numbers, for example from Make Array or Range. - An empty array (or nothing connected) gives NaN, with no error.
Related nodes
- Make Array: builds the array from single numbers.
- Lerp: the middle of two numbers.
- Average Point: the same for points.