ArrayMovingAverage
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