Static methods
staticaverage(arr:ReadonlyArray<Float>):Float
Finds the average of all the elements in the array.
It returns NaN
if the array is empty.
staticcompact(arr:ReadonlyArray<Null<Float>>):Array<Float>
Filters out all null or Math.NaN floats in the array
staticresize(array:Array<Float>, length:Int, fill:Float = 0.0):Array<Float>
Resizes an array of Float
to an arbitrary length by adding more elements (default is 0.0
)
to its end or by removing extra elements.
Note that the function changes the passed array and doesn't create a copy.
staticresized(array:Array<Float>, length:Int, fill:Float = 0.0):Array<Float>
Copies and resizes an array of Float
to an arbitrary length by adding more
elements (default is 0.0
) to its end or by removing extra elements.
Note that the function creates and returns a copy of the passed array.
staticstandardDeviation(array:ReadonlyArray<Float>):Float
Returns the sample standard deviation of the sampled values.