L1 Norm / L2 Norm

Machine Learning 2016. 11. 23. 20:16
http://mathworld.wolfram.com/L1-Norm.html

 

http://mathworld.wolfram.com/L2-Norm.html

matlab : https://www.mathworks.com/matlabcentral/answers/146264-how-to-perform-l2-normalization

If v is the vector do:

 v = v/norm(v);

(The 'norm' function gives L2 norm as a default.)

Posted by uniqueone
,