PROJ_B1 - Projection onto a L1-ballUsagesol=proj_b1(x, ~, param) [sol,infos]=proj_b1(x, ~, param) Input parameters
Output parameters
Descriptionproj_b1(x,~,param) solves:
\begin{equation*}
sol = \min_z ||x - z||_2^2 \hspace{1cm} s.t. \hspace{1cm} \|w.*z\|_1 < \epsilon
\end{equation*}
Remark: the projection is the proximal operator of the indicative function of \(||w.*z||_1 < \epsilon\). So it can be written:
\begin{equation*}
prox_{f, \gamma }(x) \hspace{1cm} where \hspace{1cm} f= i_c(\|w.*z\|_1 < \epsilon)
\end{equation*}
param is a Matlab structure containing the following fields:
info is a Matlab structure containing the following fields:
Rem: The input "~" is useless but needed for compatibility issue. This code is partly borrowed from the SPGL toolbox! |