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 April 23, 2024, 2:31 p.m.