Normalizes an array of numbers to the range from -1 to 1, where the reference value is mapped to 0.
reference
The array of numbers to normalize.
The reference value to map to 0.
The normalized array of numbers.
Normalizes an array of numbers to the range from -1 to 1, where the
reference
value is mapped to 0.