powered by
Normalization of vectors.
normalize(v, w = NULL)
normalized v
v
normalized w
w
vector
optional vector
Nicole Kraemer, Mikio L. Braun
The vector v is normalized to length 1. If w is given, it is normalized by the length of v.
v<-rnorm(5) w<-rnorm(10) dummy<-normalize(v,w)
Run the code above in your browser using DataLab