Description Usage Arguments Value Examples
View source: R/soft.threshold.R
The function soft.threshold() soft-thresholds a vector such that the L1-norm constraint is satisfied.
1 | 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 2 | x <- rnorm(10)
soft.threshold(x,0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.