R/hinge.R

Defines functions hinge

Documented in hinge

#' 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/LinSeed documentation built on Aug. 9, 2019, 4:33 p.m.