normalizeVector | R Documentation |
normalizeVector
normalizes a vector to unit length.
normalizeVector(v)
v |
a vector |
normalized vector
Tomas Sieger
normalizeVector(c(1, 0, 0))
normalizeVector(c(1, 1, 0))
normalizeVector(c(1, 1, 1))
normalizeVector(c(-1, 2, 3))
vectorLength(normalizeVector(c(-1, 2, 3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.