Toggle menu
868
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 03:42, 16 October 2014 by Phamhuuphucgopenid (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


arrayMovingAverage

Syntax

arrayMovingAverage(Array,NoItem,Strict)

Arguments

Array: Is an expression of the type array.

NoItem: Is an expression of the type number.

Strict: Is an expression of the type boolean.

Return type

Array

Examples

array arr1={1,2,3,4,5,5};
number num=2;
bool strict=false;
array arr2=arrayMovingAverage(arr1,num,strict);
print(arr2);

// output {1.5,2.5,3.5,4.5,5}

Availability

Version 5.8