comparison 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
comparison
equal deleted inserted replaced
154:0de08f68256b 155:b14209313ba4
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);