twonorm | R Documentation |
Computes the Euclidean norm of a vector.
twonorm(x)
x |
A vector. |
twonorm
computes the Euclidean norm of a vector:
sqrt(sum(x^2))
.
A numeric vector of length one containing the two-norm of x.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.