Support

Equilla Formula Language

AvgDeviationArray

Returns the average deviation of the elements in an array.

Inputs

Array
Array: The array.
NumElements
Numeric: (Optional) The number of elements to consider.

Examples

Average deviation of all elements
Variable: result; Array: myDynamicArray[]; FillArray(myDynamicArray, 3, 4, 5, 2, 7); result = AvgDeviationArray(myDynamicArray); print(result); // prints 1,44
Average deviation of the first three elements
Variable: result; Array: myDynamicArray[]; FillArray(myDynamicArray, 3, 4, 5, 2, 7); result = AvgDeviationArray(myDynamicArray, 3); print(result); // prints 0,6666666666667