Module

Utils/MathUtils

static class for general utility

View Source core/src/Utils/MathUtils.ts, line 2

Methods

# static argMax(array) → {number}

Returns the index of the maximum Value

Parameters:
Name Type Description
array Array.<number>

A numbers array

View Source core/src/Utils/MathUtils.ts, line 12

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

View Source core/src/Utils/MathUtils.ts, line 31

The sum

number