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/waveslim documentation built on May 3, 2021, 5:31 a.m.