Description Usage Arguments Value Author(s) Examples
View source: R/normalize-vectors.R
Takes in one or more vectors and normalizes their lengths to 1.
1 | normalize_vectors(vectors)
|
vectors |
A n x d matrix or data frame that contains one vector per row, and one column per dimension. |
The return value is of the same type as vectors
, and contains
the normalized vectors.
Mathias Isaksen mathiasleanderi@gmail.com
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.