R/soft.R

Defines functions soft

Documented in soft

soft <- function(x, T) {
  y <- max(abs(x) - T, 0)
  return(y/(y+T) * x)
}
neuroconductor-devel-releases/waveslim documentation built on May 5, 2020, 4:44 a.m.