View source: R/guidedPLS-internal.R
softThr | R Documentation |
The degree of the sparseness of vector is controlled by the lambda parameter.
softThr(y, lambda=1)
y |
A numerical vector. |
lambda |
Threshold value to convert a value 0. If the absolute value of an element of vector is less than lambda, the value is converted to 0 (Default: 1). |
A numerical vector, whose length is the same as that of y.
Koki Tsuyuzaki
y <- seq(-2, 2, 0.1)
softThr(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.