View source: R/lassoshooting.R
softthresh | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.