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 Feb. 18, 2025, 8:31 a.m.