Diff of /sigproc/groupthresh.m [e6709d] .. [2f5a82]  Maximize  Restore

Switch to unified view

a/sigproc/groupthresh.m b/sigproc/groupthresh.m
...
...
63
if flags.do_group
63
if flags.do_group
64
  
64
  
65
  groupnorm = sqrt(sum(abs(xi).^2));
65
  groupnorm = sqrt(sum(abs(xi).^2));
66
  w = thresh(groupnorm, lambda, flags.iofun,flags.outclass)./groupnorm;
66
  w = thresh(groupnorm, lambda, flags.iofun,flags.outclass)./groupnorm;
67
  
67
  
68
  w(1)
69
  
70
  % Clean w for NaN. NaN appears if the input has a group with norm
68
  % Clean w for NaN. NaN appears if the input has a group with norm
71
  % exactly 0.
69
  % exactly 0.
72
  w(isnan(w)) = 0;
70
  w(isnan(w)) = 0;
73
  
71
  
74
  xo = bsxfun(@times,xi,w);
72
  xo = bsxfun(@times,xi,w);

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks