#' Soft negative score
#'
#' @param Y matrix
#' @param tau coefficient to penalize for volume
#'
#' @return
#'
#' @examples
softNeg <- function(Y, tau) {
z <- pmax(abs(Y + tau / 2) - tau / 2, 0)
z <- z / (z + tau / 2) * (Y + tau / 2)
return(z)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.