softthresh {lassoshooting}R 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)

[Package lassoshooting version 0.1.5-1.1 Index]