threshld: Threshold data with hard or soft thresholding

Description Usage Arguments Value Author(s) References See Also Examples

Description

Given a data value or a vector of data, threshold the data at a specified value, using hard or soft thresholding

Usage

1
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

ebayesthresh

Examples

1
threshld(-5:5, 1.4, FALSE)


Search within the EbayesThresh package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.