comparison DL/Majorization Minimization DL/softthreshold.m @ 159:23763c5fbda5 danieleb

Merge
author Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk>
date Wed, 31 Aug 2011 10:43:32 +0100
parents b14209313ba4
children
comparison
equal deleted inserted replaced
158:855aa3288394 159:23763c5fbda5
1 % Soft threshold operator for matrices
2 % [Y] = softthreshold(X,theta)
3 % X : input matrix
4 % theta : thresholding parameter
5 function [Y] = softthreshold(X,theta)
6 Y = X - min(theta,abs(X)).*sign(X);