R/nrm.r

nrm <- function(A){
# makes columnwise normalized version of A
n = dim(A)[1]
m = dim(A)[2]

d = apply(A^2,2,sum)^.5
N = A / (as.matrix(rep(1,n))%*%d)
}

Try the clustrd package in your browser

Any scripts or data that you put into this service are public.

clustrd documentation built on May 8, 2019, 5:03 p.m.