Calculates the normalization of an array.
The array
Optional
The type of norm to normalize with, which can be "L0", "L1", "L2", or "LInfinity"
const result = Chalkboard.stat.normalize([3, 4]); // Returns [0.6, 0.8] Copy
const result = Chalkboard.stat.normalize([3, 4]); // Returns [0.6, 0.8]
Calculates the normalization of an array.