gl_spec - spectrum function for teh grouped L1 regularizer Copyright(c) 2009 Ryota Tomioka This software is distributed under the MIT license. See license.txt
0001 % gl_spec - spectrum function for teh grouped L1 regularizer 0002 % 0003 % Copyright(c) 2009 Ryota Tomioka 0004 % This software is distributed under the MIT license. See license.txt 0005 0006 function nm=gl_spec(ww,blks) 0007 0008 nn=length(blks); 0009 nm=zeros(nn,1); 0010 0011 ixw=0; 0012 for kk=1:length(blks) 0013 I=ixw+(1:blks(kk)); 0014 ixw=I(end); 0015 nm(kk)=norm(ww(I)); 0016 end