softthresh {lassoshooting} | R Documentation |
Soft threshold
softthresh(x, t)
x |
value |
t |
threshold |
Pass x
through a soft threshold with parameter t
.
A numeric scalar
## Not run:
t <- 0.4
plot(sapply(seq(-2,2,by=0.1),function (x) softthresh(x, t)),type='l')
## End(Not run)