⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 norml12_project.m

📁 Spectral Projected L1 solver
💻 M
字号:
function x = NormL12_project(g,x,weights,tau)% Projection with number of groups equal to g% Convert to matrixm = round(length(x) / g); n = g;x = reshape(x,m,n);% Compute two-norms of rowsif isreal(x)   xa  = sqrt(sum(x.^2,2));else   xa  = sqrt(sum(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   = spdiags(xc,0,m,m)*x;% Vectorize resultx = x(:);

⌨️ 快捷键说明

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