Mercurial > hg > smallbox
view DL/Majorization Minimization DL/softthreshold.m @ 160:e3035d45d014 danieleb
Added support classes
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Wed, 31 Aug 2011 10:53:10 +0100 |
parents | b14209313ba4 |
children |
line wrap: on
line source
% 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);