Mercurial > hg > smallbox
view DL/Majorization Minimization DL/softthreshold.m @ 233:88a5c02d20d3
Added tag ver_2.0_alpha1 for changeset 15fd4c5be71a
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 19 Apr 2012 15:55:59 +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);