Anny on

Global

Methods

normalize(array, minopt, maxopt)

Normalizes an array of numbers to a range from -1 to 1.

Normalizes an array of numbers to a range from -1 to 1. Optionally specifying the dataMin and/or dataMax is useful when normalizing multiple arrays that do not each contain the global min value or global max value.

Parameters:
Name Type Attributes Description
array Array.<number>

The array to normalize.

min number <optional>

The number to use at the min value in the array. Defaults to the actual min array value.

max number <optional>

The number to use at the max value in the array. Defaults to the actual max array value.

Source:

type(arg)

Thin helper for use getting object type.

Thin helper for use getting object type.

Parameters:
Name Type Description
arg *

The value whose type should be returned.

Source: