soft.threshold.Rd
The function soft.threshold() soft-thresholds a vector such that the L1-norm constraint is satisfied.
soft.threshold(x, sumabs = 1)
x | A numeric vector. |
---|---|
sumabs | A numeric constraint on x's L1 norm. |
Returns a vector resulting from the soft thresholding of \(x\) given sumabs
#> [1] 0.000000e+00 0.000000e+00 -1.418674e-10 0.000000e+00 0.000000e+00 #> [6] 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00