view DL/Majorization Minimization DL/softthreshold.m @ 189:75b5dedcfd45 luisf_dev

created initialization file; changing SMALL_learn in order to initialize plugins.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 16 Feb 2012 18:24:43 +0000
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);