Last data update: 2014.03.03

R: Soft Threshold
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)

Results