powered by
Soft threshold
softthresh(x, t)
value
threshold
A numeric scalar
Pass x through a soft threshold with parameter t.
x
t
# NOT RUN { # } # NOT RUN { t <- 0.4 plot(sapply(seq(-2,2,by=0.1),function (x) softthresh(x, t)),type='l') # }
Run the code above in your browser using DataLab