R/hard_thresholding.R

Defines functions hard_thresholding

Documented in hard_thresholding

## File Name: hard_thresholding.R
## File Version: 0.06


hard_thresholding <- function( x, lambda )
{
    x_abs <- abs(x)
    x <- ifelse( x_abs > lambda, x, 0 )
    return(x)
}
alexanderrobitzsch/sirt documentation built on March 18, 2024, 1:29 p.m.