avg (Average)
$avg (Average) calculates the average value over the specified parameters.
Syntax:
$avg(a [, b[, c[...]]])
Parameter
Name |
Description |
a |
A value (e.g. ' 5 '), a list (e.g. $el(3,true) ) or a reference to a value (e.g. $el(3) ). |
Other parameters |
Other parameters of type a. |
Return value
The mean value over the specified values or fields.
Example
Syntax |
Result |
$avg(2, 5, 7) $avg($el( 28, true) ) |
4.67 The mean value of the elements of the repeating element with Id 28. |