quick.norm {akmeans} | R Documentation |
it is normalizing each row to have L2 norm as 1 or sum as 1
quick.norm(A, mod = 2)
A |
Input matrix, n by p |
mod |
1: make each row has L2 norm as 1 2: make each row has sum as 1 |
A normalized n by p matrix will be returned
Jungsuk Kwac
quick.norm(matrix(rnorm(9),3,3)) quick.norm(matrix(rnorm(9),3,3),mod=1)