Toggle menu
862
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.

ArrayMovingAverage: Difference between revisions

From Catglobe Wiki
Hovietluu (talk | contribs)
Created page with "==== <span class="mw-headline" id="Folder_getFolderByName">arrayMovingAverage</span> ==== '''Syntax''' arrayMovingAverage(Array,NoItem,Strict) '''Arguments''' <span style=..."
 
No edit summary
 
Line 1: Line 1:
[[Category:Collection_Functions]]
==== <span class="mw-headline" id="Folder_getFolderByName">arrayMovingAverage</span> ====
==== <span class="mw-headline" id="Folder_getFolderByName">arrayMovingAverage</span> ====



Latest revision as of 03:42, 16 October 2014


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