<< wnoisest denoising discrete_wavelet_analysis >>

swt >> denoising > wthresh

wthresh

Soft or hard thresholding

Calling Sequence

Y = wthresh(X,SORH,T)

Parameters

X:

input data (vector or matrix)

SORH = 's':

soft thresholding

SORH = 'h' :

hard thresholding

T:

threshold value

Y :

output

Description

doing either hard (if SORH = 'h') or soft (if SORH = 's') thresholding

Examples

// Generate signal and set threshold.
y = linspace(-1,1,100);
thr = 0.4;

// Perform hard thresholding.
ythard = wthresh(y,'h',thr);

// Perform soft thresholding.
ytsoft = wthresh(y,'s',thr);

See also

Authors


Report an issue
<< wnoisest denoising discrete_wavelet_analysis >>