Mercurial > hg > smallbox
diff DL/Majorization Minimization DL/softthreshold.m @ 155:b14209313ba4 ivand_dev
Integration of Majorization Minimisation Dictionary Learning
author | Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk> |
---|---|
date | Mon, 22 Aug 2011 11:46:35 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DL/Majorization Minimization DL/softthreshold.m Mon Aug 22 11:46:35 2011 +0100 @@ -0,0 +1,6 @@ +% Soft threshold operator for matrices +% [Y] = softthreshold(X,theta) +% X : input matrix +% theta : thresholding parameter +function [Y] = softthreshold(X,theta) +Y = X - min(theta,abs(X)).*sign(X); \ No newline at end of file