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)

EbayesThresh documentation built on May 29, 2017, 11:58 a.m.

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