view DL/Majorization Minimization DL/softthreshold.m @ 240:04fb7249011e

Added tag ver_2.0_beta for changeset 71128ec3e532
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 25 Apr 2012 13:06:47 +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);