shrinkage function

Shrinkage function for sparse soft-thresholding

Shrinkage function for sparse soft-thresholding

shrinkage(y, tau)

Arguments

  • y: A matrix, or a vector for thresholding
  • tau: A positive number, threshold

Returns

A thresholded matrix, or vector

  • Maintainer: Yue Bai
  • License: GPL-2
  • Last published: 2024-06-15

Useful links