Learn R Programming

rwt (version 1.0.0)

threshold: Threshold Input Signal

Description

Thresholds the input signal y with the threshold value thld.

Usage

hardTh(y, thld) softTh(y, thld)

Arguments

y
1D or 2D signal to be thresholded
thld
numeric threshold value to be applied

Value

x
Thresholded output

References

D.L. Donoho De-noising via Soft-Thresholding Tech. Rept. Statistics, Stanford (1992)

Examples

Run this code
sig <- makesig(SIGNAL.WERNER.SORROWS, 8)
thld <- 1
x <- rwt:::hardTh(sig$x, thld)

Run the code above in your browser using DataLab