view DL/Majorization Minimization DL/softthreshold.m @ 155:b14209313ba4 ivand_dev

Integration of Majorization Minimisation Dictionary Learning
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Mon, 22 Aug 2011 11:46:35 +0100
parents
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);