norm1 | R Documentation |
Scales a vector to a unit vector.
norm1(x)
x |
a numeric vector |
Matthias Templ
data(expenditures)
i <- 1
D <- 6
vec <- c(rep(-1/i, i), 1, rep(0, (D-i-1)))
norm1(vec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.