powered by
Given a data value or a vector of data, threshold the data at a specified value, using hard or soft thresholding.
threshld(x, t, hard = TRUE)
a data value or a vector of data
value of threshold to be used
specifies whether hard or soft thresholding is applied
A value or vector of values the same length as x, containing the result of the relevant thresholding rule applied to x.
x
See ebayesthresh and http://www.bernardsilverman.com
ebayesthresh
# NOT RUN { threshld(-5:5, 1.4, FALSE) # }
Run the code above in your browser using DataLab