arraylib::Var

Command: arraylib::Var


Description

Returns the variance 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] Var -> number

Examples

[0 1 2] Var -> 1.0
[1 2 3 4] Var -> 1.666667

File
lib/sli/arraylib.sli
Remarks

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