
Last chance! 50% off unlimited learning
Sale ends in
Normalize vectors to norm 1.
normalize(x,…)
# S3 method for default
normalize(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.
# NOT RUN {
data(SimulatedAmounts)
normalize(c(1,2,3))
normalize(acomp(c(1,2,3)))
norm(normalize(acomp(sa.groups)))
# }
Run the code above in your browser using DataLab