def

func:avg

avg(val, acc)

Fold multiple values into their standard average or arithmetic mean. This function is the same as math::mean. Null values are ignored. Return null if no values.

Example:

[7, 2, 3].fold(avg)  >>  4

meta

def func:avg
disKey ui::average
foldOn Number
is func
lib lib:axon
name avg

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function