L2.norm {Rtreemix} | R Documentation |
A function for calculating the L2 norm of a given numeric vector
.
L2.norm(x)
x |
A numeric vector. |
The function returns the L2 norm of the given vector x
.
Jasmina Bogojeska
## Define a numeric vector y <- c(1, 2, 3, 4) ## Calculate the L2 norm of the vector y L2.norm(y)