arraylib::Mean

Command: arraylib::Mean


Description

Returns the sum of all elements in the array. The array is expected
to contain only numbers and is flattened before the computation.

Parameters

[array]: array of numbers

Author
R Kupper

Availability
library "arraylib"

Synopsis
[array] Mean -> number

Examples

[1 2 3 4] Mean -> 2.5

File
lib/sli/arraylib.sli
Remarks

The array must contain no other elements than numbers.
The return type is always double.