Difference between revisions of "ArrayMovingAverage"
(Created page with "==== <span class="mw-headline" id="Folder_getFolderByName">arrayMovingAverage</span> ==== '''Syntax''' arrayMovingAverage(Array,NoItem,Strict) '''Arguments''' <span style=...") |
|||
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 04: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