📄 softthresh.m
字号:
function x = SoftThresh(y,t)
% SoftThresh -- Apply Soft Threshold
% Usage
% x = SoftThresh(y,t)
% Inputs
% y Noisy Data
% t Threshold
% Outputs
% x sign(y)(|y|-t)_+
%
res = (abs(y) - t);
res = (res + abs(res))/2;
x = sign(y).*res;
%
% Copyright (c) 1993-5. Jonathan Buckheit, David Donoho and Iain Johnstone
%
%
% Part of WaveLab Version 802
% Built Sunday, October 3, 1999 8:52:27 AM
% This is Copyrighted Material
% For Copying permissions see COPYING.m
% Comments? e-mail wavelab@stat.stanford.edu
%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -