softthresh: Soft Threshold

View source: R/lassoshooting.R

softthreshR Documentation

Soft Threshold

Description

Soft threshold

Usage

  softthresh(x, t)

Arguments

x

value

t

threshold

Details

Pass x through a soft threshold with parameter t.

Value

A numeric scalar

Examples

  ## Not run: 
    t <- 0.4
    plot(sapply(seq(-2,2,by=0.1),function (x) softthresh(x, t)),type='l')
  
## End(Not run)

lassoshooting documentation built on April 5, 2022, 1:15 a.m.