ArrayMovingAverage

From Catglobe Wiki
Revision as of 04:42, 16 October 2014 by Phamhuuphucgopenid (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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