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. An internal function, not generally called by the user.
A numeric argument whose values are to be normalized.
The normalized vector.
The idea was taken from "An Introduction to rggobi" found at the ggobi web site: http://www.ggobi.org.
Bryan A. Hanson, DePauw University.
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.