threshld {EbayesThresh} | R Documentation |
Threshold data with hard or soft thresholding
Description
Given a data value or a vector of data, threshold the data at a specified value, using hard or soft thresholding.
Usage
threshld(x, t, hard = TRUE)
Arguments
x |
a data value or a vector of data |
t |
value of threshold to be used |
hard |
specifies whether hard or soft thresholding is applied |
Value
A value or vector of values the same length as x
, containing
the result of the relevant thresholding rule applied to x
.
Author(s)
Bernard Silverman
References
See ebayesthresh
and
http://www.bernardsilverman.com
See Also
Examples
threshld(-5:5, 1.4, FALSE)
[Package EbayesThresh version 1.4-12 Index]