Normalises an array.
This version returns additional context of the normalisation, alternatively use array
const c = arrayWithContext(someValues);c.values; // Array of normalised valuesc.original; // Original input arrayc.min / c.max / c.range Copy
const c = arrayWithContext(someValues);c.values; // Array of normalised valuesc.original; // Original input arrayc.min / c.max / c.range
Values
Optional
If provided, this will be min value used
If provided, this will be the max value used
Normalises an array.
This version returns additional context of the normalisation, alternatively use array