static class for general utility
Methods
# static argMax(array) → {number}
Returns the index of the maximum Value
Parameters:
| Name | Type | Description |
|---|---|---|
array |
Array.<number>
|
A numbers array |
the index of the maximum value
number
# static sum(array) → {number}
Calculate the Sum of a numbers array
Parameters:
| Name | Type | Description |
|---|---|---|
array |
Array.<number>
|
the numbers array |
The sum
number