Each value of the vector passed to the function is divided by the square root of the sum of every value squared, producing a new vector whose range is restricted to, at most, -1 to +1. Note that this assumes that the mean of the original vector is zero.
Usage
normVec(x)
Arguments
x
A numeric argument whose values are to be normalized.