R/soft.R

Defines functions soft

Documented in soft

soft <- function(x, T) {
  y <- max(abs(x) - T, 0)
  return(y/(y+T) * x)
}
bjw34032/waveslim documentation built on Aug. 18, 2022, 2:36 p.m.