Nothing
#' Computes Manhattan distance.
#'
#' \code{manhattan} computes the Manhattan distance from data to centers.
#' @param x internally provided by \code{miclust} function.
#' @param centers internally provided by \code{miclust} function.
#' @return internal value to be used by \code{miclust} function.
#' @keywords internal
#' @importFrom matrixStats colSums2
manhattan <- function(x, centers) {
z <- matrix(0, nrow = nrow(x), ncol = nrow(centers))
for(k in 1:nrow(centers))
z[, k] <- matrixStats::colSums2(abs(t(x) - centers[k, ]))
return(z)
}
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.