Learn R Programming

waved (version 1.3)

HardThresh: Hard Threshold

Description

Apply hard threshold.

Usage

HardThresh(y, t)

Value

vector $y$ thresholded: entries below $t$ are replaced by zeros.

Arguments

y

vector

t

threshold

Author

Marc Raimondo

References

Raimondo, M. and Stewart, M. (2007), "The WaveD Transform in R", Journal of Statistical Software.

See Also

WaveD

Examples

Run this code
HardThresh(1:5,2)
  

Run the code above in your browser using DataLab