R/hinge.R

#' Hinge function
#'
#' @param Y matrix describing genes (possibly in reduced space)
#'
#' @return matrix -Y with negative values replaced with zeroes
#'
#' @examples
hinge <- function(Y) {
    return(pmax(-Y, 0))
}
ctlab/ClusDec documentation built on May 14, 2019, 12:29 p.m.