R/nrm.r

Defines functions nrm

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 July 17, 2022, 1:05 a.m.