Nothing
#' @title Normalize function for a matrix
#'
#' @description
#' To calculate normmalize of a matrix
#'
#' @param X a numeric matrix
#' @return a matrix with norm 1
#' @export
#' @keywords internal
normM <- function(X){
if (is.data.frame(X) == TRUE) {
X = as.matrix(X)
}
normX = sqrt(sum(diag(t(X) %*% X)))
Y = X / 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.