softthresh: Soft Threshold

Description Usage Arguments Details Value Examples

View source: R/lassoshooting.R

Description

Soft threshold

Usage

1

Arguments

x

value

t

threshold

Details

Pass x through a soft threshold with parameter t.

Value

A numeric scalar

Examples

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

Example output



lassoshooting documentation built on May 2, 2019, 9:59 a.m.