Description Usage Arguments Details Value Author(s) Examples
View source: R/r-utility-l2norm.R
This function calculates the L2 (Euclidean) norm of a numeric vector. It is used in examples presented in the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R. See Appendix B or http://www.wiley.com/go/data_mining_algorithms for more details.
1 | l2norm(v)
|
v |
a numeric vector |
The L2 (Euclidean) norm is calculated as the square root of the sum of squared vector elements.
sqrt(sum(v^2))
Pawel Cichosz <p.cichosz@elka.pw.edu.pl>
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.