Functions Index :: A :: Average

[<< up one level]

Module:

numeric :: statistics

Definition:

Average(val x1, val "x2", val "x3", val "x4", ... , val "x20")

Description:

Returns the (statistical) average of its arguments. [1]

Examples:

avg = Average(6, 5, 7, 9, 4, 8)

# avg == 6.5000, ie 39/6

 

[<< top]

 


[1]: The function can handle up to 20 arguments. This number is chosen as a good balance between usability and speed. If more arguments are needed use an array and the ArraySum function, or a suitable function of the array package.