This function applies soft-thresholding to the input values, setting values below the threshold to zero
and shrinking the remaining values by the threshold amount.
Arguments
- x
A numeric vector of input values
- threshold
A non-negative threshold value for the soft-thresholding operation
Value
A numeric vector with the soft-thresholded values