function x = HardThresh(y,t) % HardThresh -- Apply Hard Threshold % Usage % x = HardThresh(y,t) % Inputs % y Noisy Data % t Threshold % Outputs % x y 1_{|y|>t} % x = y .* (abs(y) > t); % % 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 %