R/S_func.R

Defines functions S_func

S_func <- function(x, a) { # Soft Thresholding Operator
  pmax(abs(x) - a, 0) * sign(x)
}

Try the MADMMplasso package in your browser

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

MADMMplasso documentation built on April 3, 2025, 10:53 p.m.