normalizeV | R Documentation |
Normalize a vector by the sum of its elements
normalizeV(x)
x |
A vector of dimension |
A vector of dimension n
with its elements summing up to 1.
## Not run: normalizeV(c(1,3)) normalizeV(matrix(c(1,2,3,4), nrow=2, ncol = 2), 2, 2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.