SoftThresh: Apply Soft Threshold

View source: R/SoftThresh.R

SoftThreshR Documentation

Apply Soft Threshold

Description

Apply Soft Threshold

Usage

SoftThresh(y, t)

Arguments

y

Noisy Data.

t

Threshold.

Value

A numeric vector with entries x_i = \mathrm{sign}(y_i)\max(|y_i| - t, 0).

See Also

HardThresh

Examples

f <- MakeSignal('HeaviSine', 2^3)
qmf <- MakeONFilter('Daubechies', 10)
L <- 0
wc <- FWT_PO(f, L, qmf)
thr <- 2
wct <- SoftThresh(wc, thr)
fsoft <- IWT_PO(wct, L, qmf)

rwavelet documentation built on Aug. 29, 2026, 1:07 a.m.