Nothing
## Dataset normalization
## @description Gives a vector such that its norm equals one
## @usage normv(x)
## @param x A dataset or a vector to normalize.
## @return returns a normalized dataset or vector.
normv=function (x){
normx = sqrt(t(x)%*% x)
if (normx<1e-16){
normx=1
}
y = x/as.numeric(normx)
return(y)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.