R/soft.R

Defines functions soft

Documented in soft

soft <- function(x, T) {
  y <- max(abs(x) - T, 0)
  return(y/(y+T) * x)
}

Try the waveslim package in your browser

Any scripts or data that you put into this service are public.

waveslim documentation built on Aug. 14, 2022, 5:07 p.m.