#' @name zeroMean
#' @title Subtract the column means from X
#' @param X numeric matrix
#' @details Not exported; exists for testing C code.
#' @return numeric matrix with column means subtracted
#' @useDynLib bcTSNE
zeroMean <- function(X) {
N <- NROW(X)
D <- NCOL(X)
NRHS <- NCOL(B)
res <- .C("zeroMean", as.numeric(X), N, D)
matrix(res[[1]], N, D)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.