normalize {plsdof} | R Documentation |
Normalization of vectors.
normalize(v, w = NULL)
v |
vector |
w |
optional vector |
The vector v
is normalized to length 1. If w
is given, it is
normalized by the length of v
.
v |
normalized |
w |
normalized |
Nicole Kraemer, Mikio L. Braun
v<-rnorm(5)
w<-rnorm(10)
dummy<-normalize(v,w)