Learn R Programming

EbayesThresh (version 1.4-12)

threshld: 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.

References

See ebayesthresh and http://www.bernardsilverman.com

See Also

ebayesthresh

Examples

Run this code
# NOT RUN {
threshld(-5:5, 1.4, FALSE)
# }

Run the code above in your browser using DataLab