Normalises an array using the min-max technique.
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
By default, computes min and max values based on contents of values. Clamping is not required for this case, so it's false by default.
values
Values
Optionally uses 'minForced' and 'maxForced' properties to scale values instead of actual min/max values of data.
Normalises an array using the min-max technique.
This version returns additional context of the normalisation, alternatively use array
By default, computes min and max values based on contents of
values. Clamping is not required for this case, so it's false by default.