Code covered by the BSD License  

Highlights from
A Bayesian Adaptive Basis Algorithm for Single Particle Reconstruction

image thumbnail

A Bayesian Adaptive Basis Algorithm for Single Particle Reconstruction

by

 

3D reconstruction algorithm for electron cryo-microscopy.

prox_regularizer(coefs, lambda, hard)
function coefs = prox_regularizer(coefs, lambda, hard)
%prox_regularizer
% Element-wise l_1 or l_0 shrinkage on cell

%   A. Kucukelbir 12-Nov-2011

if(iscell(coefs))
  if(hard)
    coefs = cellfun(@(f)wthresh(f,'h',lambda), coefs, 'Un', 0);
  else
    coefs = cellfun(@(f)wthresh(f,'s',lambda), coefs, 'Un',0);
  end
else
  if(hard)
    coefs = wthresh(coefs,'h',lambda);
  else
    coefs = wthresh(coefs,'s',lambda);
  end
end

Contact us