normalize | R Documentation |
Normalize vectors to norm 1.
normalize(x,...)
## Default S3 method:
normalize(x,...)
x |
a dataset or a single vector of some type |
... |
currently not used, intended to select a different norm in the future |
The vectors given, but normalized to norm 1.
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
norm.rmult
data(SimulatedAmounts)
normalize(c(1,2,3))
normalize(acomp(c(1,2,3)))
norm(normalize(acomp(sa.groups)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.