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-releases/waveslim documentation built on Oct. 30, 2020, 11:10 p.m.