normgroupl2_project.m

来自「Spectral Projected L1 solver」· M 代码 · 共 18 行

M
18
字号
function x = NormGroupL2_project(groups,x,weights,tau)% Projection binary group matrix% Compute two-norms of rowsif isreal(x)   xa  = sqrt(sum(groups * x.^2,2));else   xa  = sqrt(sum(groups * abs(x).^2,2));end% Project one one-norm ballidx = xa < eps;xc  = oneProjector(xa,weights,tau);% Scale originalxc  = xc ./ xa; xc(idx) = 0;x   = full(groups' * xc).*x;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?