R/mlnormal_soft_thresholding.R

Defines functions mlnormal_soft_thresholding

## File Name: mlnormal_soft_thresholding.R
## File Version: 0.13


mlnormal_soft_thresholding <- function( x, lambda )
{
    x_abs <- abs(x)
    x <- ifelse( x_abs > lambda, x - sign(x) * lambda, 0 )
    return(x)
}
alexanderrobitzsch/LAM documentation built on March 27, 2024, 5:36 a.m.